Skip to content

Commit

Permalink
Merge pull request #198 from arnauddupuis/arnauddupuis/issue197
Browse files Browse the repository at this point in the history
Add several missing fonts and their documentation
  • Loading branch information
arnauddupuis committed Oct 10, 2022
2 parents 09ab7b9 + c177220 commit 7a877c7
Show file tree
Hide file tree
Showing 64 changed files with 686 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/assets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ a nice default set of assets to build games. But the library can work without it

.. toctree::
graphics
fonts
Binary file added docs/source/font-example-8bits.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/font-example-figlet-caligraphy.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/font-example-figlet-doom.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/font-example-figlet-graffiti.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/font-example-figlet-mirror.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/font-example-figlet-pepper.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/font-example-figlet-poison.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/font-example-figlet-puffy.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/font-example-figlet-rounded.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/font-example-figlet-stampatello.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/font-example-figlet-univers.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/font-example-figlet-wavy.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions docs/source/fonts.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.. _assets_fonts-module:

Fonts
=====

Fonts in the pygamelib are nothing more than a specially organized sprite collection.

The way to use it is extremely simple: you instantiate a Font object and ask it to load the data from a specific font.

For example to load the 8bits font, you do:

Example::
from pygamelib.gfx import core

my_font = core.Font('8bits')

That's it! The you can use it to format Text objects.

.. toctree::

pygamelib.assets.fonts.8bits.rst
pygamelib.assets.fonts.figlet-caligraphy.rst
pygamelib.assets.fonts.figlet-doom.rst
pygamelib.assets.fonts.figlet-graffiti.rst
pygamelib.assets.fonts.figlet-mirror.rst
pygamelib.assets.fonts.figlet-pepper.rst
pygamelib.assets.fonts.figlet-poison.rst
pygamelib.assets.fonts.figlet-puffy.rst
pygamelib.assets.fonts.figlet-rounded.rst
pygamelib.assets.fonts.figlet-stampatello.rst
pygamelib.assets.fonts.figlet-univers.rst
pygamelib.assets.fonts.figlet-wavy.rst
25 changes: 25 additions & 0 deletions docs/source/pygamelib.assets.fonts.8bits.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
8bits
=====

.. versionadded:: 1.3.0


How to use?
-----------

Example::

from pygamelib.gfx.core import Font
from pygamelib.base import Text

my_font = Font("8bits")
my_text = Text("Lorem Ipsum", font=my_font)
my_text.print_formatted()

What does it look like?
-----------------------

.. image:: font-example-8bits.png
:alt: Example
:align: center

35 changes: 35 additions & 0 deletions docs/source/pygamelib.assets.fonts.figlet-caligraphy.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
figlet-caligraphy
=================

.. versionadded:: 1.3.0


How to use?
-----------

Example::

from pygamelib.gfx.core import Font
from pygamelib.base import Text

my_font = Font("figlet-caligraphy")
my_text = Text("Lorem Ipsum", font=my_font)
my_text.print_formatted()

What does it look like?
-----------------------

.. image:: font-example-figlet-caligraphy.png
:alt: Example
:align: center

More
----

Please visit the FIGlet project: http://www.figlet.org/

The fonts prefixed by "figlet-" are but a small portion of what's available here.

To easily convert FIGlet fonts to the pygamelib's format you can you the figlet-to-pygamelib script available here: https://github.com/pygamelib/figlet-to-pygamelib


35 changes: 35 additions & 0 deletions docs/source/pygamelib.assets.fonts.figlet-doom.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
figlet-doom
===========

.. versionadded:: 1.3.0


How to use?
-----------

Example::

from pygamelib.gfx.core import Font
from pygamelib.base import Text

my_font = Font("figlet-doom")
my_text = Text("Lorem Ipsum", font=my_font)
my_text.print_formatted()

What does it look like?
-----------------------

.. image:: font-example-figlet-doom.png
:alt: Example
:align: center

More
----

Please visit the FIGlet project: http://www.figlet.org/

The fonts prefixed by "figlet-" are but a small portion of what's available here.

To easily convert FIGlet fonts to the pygamelib's format you can you the figlet-to-pygamelib script available here: https://github.com/pygamelib/figlet-to-pygamelib


35 changes: 35 additions & 0 deletions docs/source/pygamelib.assets.fonts.figlet-graffiti.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
figlet-graffiti
===============

.. versionadded:: 1.3.0


How to use?
-----------

Example::

from pygamelib.gfx.core import Font
from pygamelib.base import Text

my_font = Font("figlet-graffiti")
my_text = Text("Lorem Ipsum", font=my_font)
my_text.print_formatted()

What does it look like?
-----------------------

.. image:: font-example-figlet-graffiti.png
:alt: Example
:align: center

More
----

Please visit the FIGlet project: http://www.figlet.org/

The fonts prefixed by "figlet-" are but a small portion of what's available here.

To easily convert FIGlet fonts to the pygamelib's format you can you the figlet-to-pygamelib script available here: https://github.com/pygamelib/figlet-to-pygamelib


35 changes: 35 additions & 0 deletions docs/source/pygamelib.assets.fonts.figlet-mirror.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
figlet-mirror
===============

.. versionadded:: 1.3.0


How to use?
-----------

Example::

from pygamelib.gfx.core import Font
from pygamelib.base import Text

my_font = Font("figlet-mirror")
my_text = Text("Lorem Ipsum", font=my_font)
my_text.print_formatted()

What does it look like?
-----------------------

.. image:: font-example-figlet-mirror.png
:alt: Example
:align: center

More
----

Please visit the FIGlet project: http://www.figlet.org/

The fonts prefixed by "figlet-" are but a small portion of what's available here.

To easily convert FIGlet fonts to the pygamelib's format you can you the figlet-to-pygamelib script available here: https://github.com/pygamelib/figlet-to-pygamelib


35 changes: 35 additions & 0 deletions docs/source/pygamelib.assets.fonts.figlet-pepper.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
figlet-pepper
=============

.. versionadded:: 1.3.0


How to use?
-----------

Example::

from pygamelib.gfx.core import Font
from pygamelib.base import Text

my_font = Font("figlet-pepper")
my_text = Text("Lorem Ipsum", font=my_font)
my_text.print_formatted()

What does it look like?
-----------------------

.. image:: font-example-figlet-pepper.png
:alt: Example
:align: center

More
----

Please visit the FIGlet project: http://www.figlet.org/

The fonts prefixed by "figlet-" are but a small portion of what's available here.

To easily convert FIGlet fonts to the pygamelib's format you can you the figlet-to-pygamelib script available here: https://github.com/pygamelib/figlet-to-pygamelib


35 changes: 35 additions & 0 deletions docs/source/pygamelib.assets.fonts.figlet-poison.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
figlet-poison
=============

.. versionadded:: 1.3.0


How to use?
-----------

Example::

from pygamelib.gfx.core import Font
from pygamelib.base import Text

my_font = Font("figlet-poison")
my_text = Text("Lorem Ipsum", font=my_font)
my_text.print_formatted()

What does it look like?
-----------------------

.. image:: font-example-figlet-poison.png
:alt: Example
:align: center

More
----

Please visit the FIGlet project: http://www.figlet.org/

The fonts prefixed by "figlet-" are but a small portion of what's available here.

To easily convert FIGlet fonts to the pygamelib's format you can you the figlet-to-pygamelib script available here: https://github.com/pygamelib/figlet-to-pygamelib


35 changes: 35 additions & 0 deletions docs/source/pygamelib.assets.fonts.figlet-puffy.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
figlet-puffy
=============

.. versionadded:: 1.3.0


How to use?
-----------

Example::

from pygamelib.gfx.core import Font
from pygamelib.base import Text

my_font = Font("figlet-puffy")
my_text = Text("Lorem Ipsum", font=my_font)
my_text.print_formatted()

What does it look like?
-----------------------

.. image:: font-example-figlet-puffy.png
:alt: Example
:align: center

More
----

Please visit the FIGlet project: http://www.figlet.org/

The fonts prefixed by "figlet-" are but a small portion of what's available here.

To easily convert FIGlet fonts to the pygamelib's format you can you the figlet-to-pygamelib script available here: https://github.com/pygamelib/figlet-to-pygamelib


35 changes: 35 additions & 0 deletions docs/source/pygamelib.assets.fonts.figlet-rounded.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
figlet-rounded
==============

.. versionadded:: 1.3.0


How to use?
-----------

Example::

from pygamelib.gfx.core import Font
from pygamelib.base import Text

my_font = Font("figlet-rounded")
my_text = Text("Lorem Ipsum", font=my_font)
my_text.print_formatted()

What does it look like?
-----------------------

.. image:: font-example-figlet-rounded.png
:alt: Example
:align: center

More
----

Please visit the FIGlet project: http://www.figlet.org/

The fonts prefixed by "figlet-" are but a small portion of what's available here.

To easily convert FIGlet fonts to the pygamelib's format you can you the figlet-to-pygamelib script available here: https://github.com/pygamelib/figlet-to-pygamelib


35 changes: 35 additions & 0 deletions docs/source/pygamelib.assets.fonts.figlet-stampatello.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
figlet-stampatello
==================

.. versionadded:: 1.3.0


How to use?
-----------

Example::

from pygamelib.gfx.core import Font
from pygamelib.base import Text

my_font = Font("figlet-stampatello")
my_text = Text("Lorem Ipsum", font=my_font)
my_text.print_formatted()

What does it look like?
-----------------------

.. image:: font-example-figlet-stampatello.png
:alt: Example
:align: center

More
----

Please visit the FIGlet project: http://www.figlet.org/

The fonts prefixed by "figlet-" are but a small portion of what's available here.

To easily convert FIGlet fonts to the pygamelib's format you can you the figlet-to-pygamelib script available here: https://github.com/pygamelib/figlet-to-pygamelib


0 comments on commit 7a877c7

Please sign in to comment.