FontInfo Pitch property. The pitch indicates if the font is fixed pitch proportionally spaced or relies on a default setting in C#.... "Is TrueType" : "Is not TrueType" )); Console . WriteLine...
To understand Aspose.Font for .NET library start from the hierarchy of its classes. The article will give you understanding of how to manipulate fonts....Font object type TrueType TTF Type 1 Type 1 Compact...those fonts. For example, TrueType format covers the following...
This class describes rules which can be used to tune process of copying encoding data for cases when Truetype symbolic font has more than one encoding. Some PDF documents after conversion into PDF/A format could give an error More than one encoding in symbolic Truetype fonts cmap. What is a reason of this error All Truetype symbolic fonts have special table cmap in its internal data. This table maps character codes to glyph indices. And this table could contain different encoding subtables which describe encodings used. See advanced info about cmap tables at https//developer.apple.com/fonts/Truetype-Reference-Manual/RM06/Chap6cmap.html. Usually cmap table contains several encoding subtables but PDF/A standard requires that either only one encoding subtable must be left for this font in PDF/A document or there must be a 30 encoding subtable among this font subtables. And key question here - what data must be taken from another subtables to copy into destination encoding table 30 Majority of fonts have well-formed cmap tables where every encoding subtable is fully consistent with another subtable. But some fonts have cmap tables with collisions - where for example one subtable has glyph index 100 for unicode 100 but another subtable has glyph index 200 for the same unicode 100. To solve this problems special strategy needed. By default following strategy used mac subtable10 is looked for. If this table is found only this data used to fill destination table 30. If mac subtable is not found then all subtables except 30 are iterated and used to copy data into destination 30 subtable. Also mapping for every unicodeunicode glyph index is copied into destination table only if destination table does not have this unicode at current moment. So for example if first subtabe has glyph index 100 for unicode 100 and next subtable has glyph index 200 for the same unicode 100 only data from first subtable unicode100 glyph index 100 will be copied. So each previous subtable takes precedence over the next. Properties of this class PdfASymbolicFontEncodingStrategy./pdfasymbolicfontencodingstrategy help tune default behaviour. If property PreferredCmapEncodingTable./pdfasymbolicfontencodingstrategy/preferredcmapencodingtable of type CMapEncodingTableType./pdfasymbolicfontencodingstrategy.queueitem.cmapencodingtabletype is set then relevant subtable will be used in precedence to mac subtable10. Value MacTable from enumeration CMapEncodingTableType./pdfasymbolicfontencodingstrategy.queueitem.cmapencodingtabletype has no sense in this case cause it points on the same mac subtable 10 which will be used by default. Property CmapEncodingTablesPriorityQueue./pdfasymbolicfontencodingstrategy/cmapencodingtablespriorityqueue discards all priorities for any subtable. If this property is set then only subtables from declared queue will be used in specified order. If subtables specified are not found then default iteration of all subtables and copy strategy described above will be used. Object QueueItem./pdfasymbolicfontencodingstrategy.queueitem specifies encoding subtable used. This subtable can be set via combination of membersPlatformID PlatformSpecificId or via CMapEncodingTableType./pdfasymbolicfontencodingstrategy.queueitem.cmapencodingtabletype enumeration. In case when the font has no 30 subtable some other subtable will be used to maintain the PDF/A compatibility. The choice of the subtable to use is made under the same rules as described earlier so that PreferredCmapEncodingTable./pdfasymbolicfontencodingstrategy/preferredcmapencodingtable and CmapEncodingTablesPriorityQueue./pdfasymbolicfontencodingstrategy/cmapencodingtablespriorityqueue properties are used to determine the resultant subtable and if the font doesnt have the requested subtables either then any existant subtable will be used....encoding data for cases when TrueType symbolic font has more than...than one encoding in symbolic TrueType font’s cmap”. What is a reason...
DocumentBase.font_infos property. Provides access to properties of fonts used in this document....save a document with embedded TrueType fonts. doc = aw . Document...is_true_type else 'not ' ) } a TrueType font" ) See Also module aspose...
FontInfo.family property. Gets or sets the font family this font belongs to....family ) print ( ' \t -' , 'Is TrueType' if font_info . is_true_type...is_true_type else 'Is not TrueType' ) print ( ' \t - Pitch:' , font_info...
C++ API Solution to manipulate various fonts. Learn how to load fonts from a disc with a few lines of code....font formats: TrueType (single font), TrueType (font collection)...Install-Package Aspose.Font Load a TrueType Font from a Disk using Aspose...
用於操作各種字體的 C++ API 解決方案。了解如何使用幾行代碼從光盤加載字體。快速可靠的本機 API 解決方案。...Font API支持以下字體格式:TrueType(單一字體)、TrueType(字體集合)、Web Open Font...Font for C++ API 從磁盤加載 TrueType 字體 TrueType 字體作為文件存儲在磁盤上,Aspose...
Aspose::Words::Saving::ExportFontFormat enum. Indicates the format that is used to export fonts while rendering to HTML fixed format in C++.... Ttf 1 TTF (TrueType Font format). Examples Shows...UsingMachineFonts/font001.ttf'[)] format[(]'truetype'[)]; }" ) -> get_Success ());...