Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
manual:chapter3:fonts [2019/11/23 09:16]
jojo1973 Move font building procedure to a separate chapter in the appendix
manual:chapter3:fonts [2019/11/25 03:17] (current)
jojo1973 [Fonts]
Line 7: Line 7:
 A font object is represented on the stack as ''​FONTDATA xx yyy...'',​ where ''​yyy...''​ is a string of characters (''​A''​-''​Z'',​ ''​a''​-''​z'',​ ''​$''​ and ''#''​) encoding the glyphs and the translation table that associates glyphs to Unicode code points while ''​xx''​ is the length (padded to a multiple of 4 bytes) of the aforementioned block, expressed in nibbles. A font object is represented on the stack as ''​FONTDATA xx yyy...'',​ where ''​yyy...''​ is a string of characters (''​A''​-''​Z'',​ ''​a''​-''​z'',​ ''​$''​ and ''#''​) encoding the glyphs and the translation table that associates glyphs to Unicode code points while ''​xx''​ is the length (padded to a multiple of 4 bytes) of the aforementioned block, expressed in nibbles.
  
-The installation of a font on the system is performed by storing the font object into a variable, whose name will become the name of the font. The command ''​[[manual:​chapter6:​fonts:​cmd_fntsto|FNTSTO]]''​ executes this operation. A font object can be recalled to the stack by the ''​[[manual:​chapter6:​fonts:​cmd_fntrcl|FNTRCL]]''​ command and uninstalled using the ''​[[manual:​chapter6:​fonts:​cmd_fntpg|FNTPG]]''​ command.+The installation of a font on the system is performed by storing the font object into a special ​variable, whose name will become the name of the font. The command ''​[[manual:​chapter6:​fonts:​cmd_fntsto|FNTSTO]]''​ executes this operation. A font object can be recalled to the stack by the ''​[[manual:​chapter6:​fonts:​cmd_fntrcl|FNTRCL]]''​ command and uninstalled using the ''​[[manual:​chapter6:​fonts:​cmd_fntpg|FNTPG]]''​ command.
  
 **newRPL** already provides 11 system fonts which are always available and can't be uninstalled. Smaller sizes are suited for soft keys, while larger sizes are preferable for stack display; however nothing prevents using large sizes for soft keys and small sizes for stack display. **newRPL** already provides 11 system fonts which are always available and can't be uninstalled. Smaller sizes are suited for soft keys, while larger sizes are preferable for stack display; however nothing prevents using large sizes for soft keys and small sizes for stack display.
  • manual/chapter3/fonts.txt
  • Last modified: 2019/11/25 03:17
  • by jojo1973