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
fontsimport [2016/09/24 17:29]
christian
fontsimport [2023/01/05 20:29] (current)
christian
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> </code>
  
-The new Font can now be accessed by+This creates a class method for Graphics.Fonts.OpenType.Font: 
 + 
 +<code smalltalk> 
 +mICRDemoCheckPrixa 
 + <font: #MICRDemoCheckPrixa> 
 + ^self file: 'MICRDemoCheckPrixa.otf' contents: (ByteArray fromASCII85String:  
 + ':K1:h!"/dW!!<3T6UjNf[(sM&!!!IY!!!e,7o2u[lPKXT!!!@R!!!*(:K&o%;0,kH!!!$B!!!",@r5X..."
 +</code> 
 + 
 +The newly imported Font can be accessed by
  
 <code smalltalk> <code smalltalk>
Line 38: Line 47:
 </code> </code>
  
-and used in the PDF for text as usual: +and used in PDF for text as usual by its name
  
 <code smalltalk> <code smalltalk>
  • fontsimport.1474730949.txt.gz
  • Last modified: 2016/09/24 17:29
  • by christian