waterrmalann/fancy-fonts-generator

experimental fonts support

Closed this issue · 1 comments

Problem

There are many possible pseudofonts that could be made from combining various unicode characters. However, not all of these fonts consistently render across all platforms or websites. Still, it would be nice if there was a way to implement these fonts into the generator.

Potential Solution: Experimental Fonts Attribute

A special attribute (boolean flag) of the PseudoFont object that identifies whether it is an experimental font or not. A font may be considered 'experimental' if it satisfies any of the following conditions:

  • It is an incomplete font that doesn't have all the right characters together yet.
  • It renders inconsistently across platforms or fails to render at all.
  • It has some form of unintended side effect (like lag or crashes).

This flag will be set in the fonts.json file for each font as an attribute named "experimentalFont" or something similar. It must not be a mandatory field to ensure backwards font file compatibility and should be set to false by default.

Features of experimental fonts.

  • They are not generated inside the "Show All Fonts" accordion.
  • They feature an [EXPERIMENTAL] tag next to the font name.

Support for experimental fonts have been implemented into the PseudoFont class. Several new experimental fonts have been added as well. Everything works as expected.