Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
fontsimport [2016/09/24 16:49] christian |
fontsimport [2016/09/24 17:38] christian |
||
---|---|---|---|
Line 14: | Line 14: | ||
</ | </ | ||
- | The method # | + | The method # |
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 20: | Line 20: | ||
<code smalltalk> | <code smalltalk> | ||
Graphics.Fonts.OpenTalk.Font importFile: aFilename in: aPackagenameSymbol. | Graphics.Fonts.OpenTalk.Font importFile: aFilename in: aPackagenameSymbol. | ||
- | Graphics.Fonts.OpenTalk.Font importAllIn: | + | Graphics.Fonts.OpenTalk.Font importAllIn: |
- | Graphics.Fonts.OpenTalk.Font importInstalledWindowsFont: | + | Graphics.Fonts.OpenTalk.Font importInstalledWindowsFont: |
" | " | ||
Graphics.Fonts.CustomFont import: filenameTrunk as: selectorSymbol. | Graphics.Fonts.CustomFont import: filenameTrunk as: selectorSymbol. | ||
Line 29: | Line 29: | ||
<code smalltalk> | <code smalltalk> | ||
- | Graphics.Fonts.OpenType.Font importFile: ' | + | Graphics.Fonts.OpenType.Font importFile: ' |
</ | </ | ||
- | The new Font can now be accessed by | + | This creates a class method for Graphics.Fonts.OpenType.Font: |
+ | |||
+ | <code smalltalk> | ||
+ | mICRDemoCheckPrixa | ||
+ | <font: # | ||
+ | ^self file: ' | ||
+ | ' | ||
+ | </ | ||
+ | |||
+ | The newly imported | ||
<code smalltalk> | <code smalltalk> | ||
Line 38: | Line 47: | ||
</ | </ | ||
- | and used in the PDF for text: | + | and used in PDF for text as usual by its name: |
<code smalltalk> | <code smalltalk> |