Note: PostScript font name may differ substantially from the Windows font menu name. Arial-BoldMT-Bold font search results,FontKe for you to share Arial-BoldMT-Bold resources,provide font download,font upload,font identification,font conversion,font preview,font generation,font design sample,font information and other services.
The following figures show how to find font name in AFM, PFB and PFB files: If you don't know the exact font name, you should open the font metric or outline files with a text editer and find the font name. When using PostScript fonts, you MUST set correct font name. 'Set the font outline file for the text segment T1.Segments(0).TextInfo.FontPfmFile = "_AB_.PFM" Set the font outline file for the text segment Set the font encoding name of the text segment The following example shows how to embed font with PFB outline. For the font outline information, platform-independent PFA (Printer Font ASCII) and the Windows-specific PFB (Printer Font Binary) formats are supported. If the TextInfo.IsFontEmbedded is set to true then TextInfo.FontOutlineFile property must be set too. TextInfo.IsFontEmbedded is used to set Font Embedding.
If a font is not embedded in a PDF document, Acrobat will take it from the operating system if available, or construct a substitute font according to the font descriptor in the PDF. T1.Segments(0).TextInfo.FontEncoding = "cp1250"Īspose.Pdf also supports embedding font descriptions into the generated output PDF document. 'Set the font encoding name of the text segment T1.Segments(0).TextInfo.FontEncodingFile = "CP1250.txt" 'Set the font encoding file for the text segment T1.Segments(0).TextInfo.FontPfmFile = "Font\PFM\_AB_.PFM" T1.Segments(0).TextInfo.FontName = "Arial-BoldMT" 'Set the font name of a segment in the text object T1. = the font encoding name of the text segment Set the font encoding file for the text segment Set the font name of a segment in the text object The following example shows how to use PFM. It is not needed to set both font metrics, AFM and PFM together. The TextInfo.FontAfmFile and TextInfo.FontPfmFile are used to set font metric files.