This is an old revision of the document!


Importing Fonts

How can you use your own font?

The PDFtalk library keeps a list of loaded fonts. These are Graphics.Fonts.Font objects readily read from its source file and interpreted as object(s). Since the process takes time, the loaded fonts are cached in the Graphics.Fonts.Font.LoadedFonts shared (class) variable.

Useful methods are:

Graphics.Fonts.Font loadedFonts.             "returns a <Dictionary key: Symbol value: Font>"
Graphics.Fonts.Font fontAt: #Helvetica.      "returns a Graphics.Fonts.StandardFont"
Graphics.Fonts.Font fontAt: #'Times-Roman'   "returns another StandardFont"
Graphics.Fonts.OpenType.Font importFile: 'MICRDemoCheckPrixa.otf' asFilename in: #'Fonts Development'
  • fontsimport.1474724815.txt.gz
  • Last modified: 2016/09/24 15:46
  • by christian