Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
fontsimport [2016/09/24 17:28]
christian
fontsimport [2016/09/24 17:35]
christian
Line 14: Line 14:
 </code> </code>
  
-The method #loadedFonts loads the fonts on demand. When the shared variable LoadedFonts is nil, all class methods are evaluated which are tagged by the <em>#font:</em> pragma.+The method #loadedFonts loads the fonts on demand. When the shared variable LoadedFonts is nil, all class methods are evaluated which are tagged by the #font: pragma.
  
 Package [Fonts Development] adds some import helpers for OpenTalk and Type-1 (CustomFont) Fonts: Package [Fonts Development] adds some import helpers for OpenTalk and Type-1 (CustomFont) Fonts:
Line 29: Line 29:
  
 <code smalltalk> <code smalltalk>
-Graphics.Fonts.OpenType.Font importFile: 'MICRDemoCheckPrixa.otf' asFilename in: #'Fonts Development'+Graphics.Fonts.OpenType.Font importFile: 'MICRDemoCheckPrixa.otf' asFilename in: #'Fonts Development'
 +</code> 
 + 
 +This creates a class method for Graphics.Fonts.OpenType.Font named #mICRDemoCheckPrixa: 
 + 
 +<code smalltalk> 
 +mICRDemoCheckPrixa 
 + <font: #MICRDemoCheckPrixa> 
 + ^self file: 'MICRDemoCheckPrixa.otf' contents: (ByteArray fromPackedString:  
 + 'S5QTS0@K@H@@@0@0P4YFHKS@0W@@@6@@@@V''4]PS5O+F@D.@@@J_@@@@0QOT2<2TWMYBP@@@R@@@@A...")
 </code> </code>
  
  • fontsimport.txt
  • Last modified: 2023/01/05 20:29
  • by christian