add fonts methods

Fixes #334
This commit is contained in:
Andy Meneely
2021-07-22 15:09:45 -04:00
parent 971bb82e72
commit d92aab4bf3
8 changed files with 78 additions and 3 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ author = u'Andy Meneely'
# The short X.Y version.
version = u'v0.16'
# The full version, including alpha/beta/rc tags.
release = u'v0.16.0'
release = u'v0.16.1'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
+20
View File
@@ -0,0 +1,20 @@
print_system_fonts
==================
Returns an array of font names that Squib knows about. These are what Squib considers "system" fonts. For debugging purposes.
This is a module function, so it can be called anywhere with ``Squib.print_system_fonts``
Options
-------
None.
Examples
--------
.. literalinclude:: ../../samples/system_font_debug/_list_fonts.rb
:language: ruby
:linenos:
+19
View File
@@ -0,0 +1,19 @@
system_fonts
============
Returns an array of font names that Squib knows about. These are what Squib considers "system" fonts. For debugging purposes.
This is a module function, so it can be called anywhere with ``Squib.system_fonts``
Options
-------
None.
Examples
--------
.. literalinclude:: ../../samples/system_font_debug/_list_fonts.rb
:language: ruby
:linenos: