Re: QL Tinkering
Posted: Tue Nov 19, 2024 5:42 pm
True Font Style - Discussion
As Screen Resolution increased so has Typology advances replaced the humble ASCII Bitmap Fonts with Vector Drawn Glyphs. When opening a Glyphs Font File it will try to apply its built-in naming scheme and sync the metrics of composite glyphs with their base glyphs. Or in simple terms a Glyphs file provides the Vector points and how they are joined with lines or curves. The Glyphs file stores only the Font outline. Scaling involves the resizing in height and width and weight or thickness of the line the Font is drawn in. Added to this we have Spacing and Kerning (Proportional Spacing) between Glyphs.
QBITS QL True Fonts - Construction
Each Font might be separately drawn, or as mentioned, constructed as a composite from Base Glyphs. A review to construct a family of Base Glyphs might be a starting point. A Glyph is constructed with Horizontal, Vertical lines or in some cases Diagonal lines, and Curves. Which for simplicity the later can be drawn as the curves of the four quadrants. This would require just eight base glyphs.
QBITS True Fonts - Scaling
Scaling would be a variable controlling the LINE ARC offset calculations and to add weight or thickness will require a doubling of the vector points and maybe the time to consider breaking down the Font into base Glyphs and using a second variable for weight or thickness. As such a character can be constructed from a set of base Glyphs, but each set with its own x,y offset from CURSOR x,y screen Position.
For a simple set of base glyphs, each requires four vector points and instructions in the use of LINE or ARC. FILL is then used to give thickness to the Font drawn. The thickness can also be used to present Regular or BOLD Printouts. A set of Italic Glyphs, would be slightly more complex for the angled ARC’s
QBITS QL True Font Style - Spacing and Kerning
A simple CURSOR Offset of Pixel columns between Glyphs could be used for Spacing and Kerning.
Other Possibilities!
Replace PRINT with CTYPE (Character Type) and used a True Font Set loaded with TYPE_USE as opposed to CHAR_USE. Create a Glyph Editor that uses a set of base Glyphs to construct a Glyph file of vector Fonts.
Or has this already been attempted by others in the past!
QBITS
As Screen Resolution increased so has Typology advances replaced the humble ASCII Bitmap Fonts with Vector Drawn Glyphs. When opening a Glyphs Font File it will try to apply its built-in naming scheme and sync the metrics of composite glyphs with their base glyphs. Or in simple terms a Glyphs file provides the Vector points and how they are joined with lines or curves. The Glyphs file stores only the Font outline. Scaling involves the resizing in height and width and weight or thickness of the line the Font is drawn in. Added to this we have Spacing and Kerning (Proportional Spacing) between Glyphs.
QBITS QL True Fonts - Construction
Each Font might be separately drawn, or as mentioned, constructed as a composite from Base Glyphs. A review to construct a family of Base Glyphs might be a starting point. A Glyph is constructed with Horizontal, Vertical lines or in some cases Diagonal lines, and Curves. Which for simplicity the later can be drawn as the curves of the four quadrants. This would require just eight base glyphs.
QBITS True Fonts - Scaling
Scaling would be a variable controlling the LINE ARC offset calculations and to add weight or thickness will require a doubling of the vector points and maybe the time to consider breaking down the Font into base Glyphs and using a second variable for weight or thickness. As such a character can be constructed from a set of base Glyphs, but each set with its own x,y offset from CURSOR x,y screen Position.
For a simple set of base glyphs, each requires four vector points and instructions in the use of LINE or ARC. FILL is then used to give thickness to the Font drawn. The thickness can also be used to present Regular or BOLD Printouts. A set of Italic Glyphs, would be slightly more complex for the angled ARC’s
QBITS QL True Font Style - Spacing and Kerning
A simple CURSOR Offset of Pixel columns between Glyphs could be used for Spacing and Kerning.
Other Possibilities!
Replace PRINT with CTYPE (Character Type) and used a True Font Set loaded with TYPE_USE as opposed to CHAR_USE. Create a Glyph Editor that uses a set of base Glyphs to construct a Glyph file of vector Fonts.
Or has this already been attempted by others in the past!
QBITS