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
+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: