![]() |
FNSMatchOptions |
Header: FontSync.h |
enum FNSMatchOptions { kFNSMatchNames = 1, kFNSMatchTechnology = 2, kFNSMatchGlyphs = 4, kFNSMatchEncodings = 8, kFNSMatchQDMetrics = 16, kFNSMatchATSUMetrics = 32, kFNSMatchKerning = 64, kFNSMatchWSLayout = 128, kFNSMatchAATLayout = 256, kFNSMatchPrintEncoding = 512, kFNSMissingDataNoMatch = -2147483648, kFNSMatchAll = -1, kFNSMatchDefaults = };
If the bit specified by this mask is set, all significant font names must match. This includes the QuickDraw Text family, ATSUI, unique, full, manufacturer, and version names. Note that the PostScript names are also examined as part of the kFNSMatchPrintEncoding option.
If the bit specified by this mask is set, scaler technologies must match. It is possible to match other parts of the font across different technologies, but this is not supported by FontSync 1.0. As a result, even if this bit is not set, fonts of different technologies will probably not match under any other criteria.
If the bit specified by this mask is set, glyph repertoires and outline/bitmap data must match.
If the bit specified by this mask is set, the 'cmap' tables must match. If the order of the 'cmap' tables is different, although the tables are the same, this may be considered a mismatch, since it can cause QuickDraw Text to use a different 'cmap' table.
If the bit specified by this mask is set, metrics used by QuickDraw Text must match. This includes the effect of fractEnable and any metric information in the 'FOND' resource.
If the bit specified by this mask is set, metrics used by ATSUI must match. This includes both horizontal and vertical metrics.
If the bit specified by this mask is set, kerning data must match.
If the bit specified by this mask is set, layout information given by an 'itl5' table, whether attached directly to the font or the one provided in the script bundle, must match.
If the bit specified by this mask is set, advanced layout information such as that used by ATSUI, must match. This includes such things as ligature and morph tables. OpenType-style layout information is included in this option.
If the bit specified by this mask is set, PostScript names and 'FOND' re-encoding vectors must match. Note that it is an error for a fonts internal PostScript name to be different from the one in the 'FOND', but FontSync will record both and consider them separately.
If the bit specified by this mask is set, FontSync will report font reference mismatches when both fonts are missing data needed by a selected option. This is useful, since some older fonts may not have all the data needed for matching newer fonts. This makes the mask constant kFNSMatchAll specify the most stringent possible match criteria.
If the bit specified by this mask is set, all of the match options must match. In this case, the bit specified by the mask constant kFNSMissingDataNoMatch is also set, asserting the most stringent possible match criteria.
If this constant is specified, the global default match criteria established by the API are used (that is, use all of the options described above in the match). If the user changes the FontSync Control Panel settings, that becomes the new default. This constant basically says to use whatever the user has set.
© 2000 Apple Computer, Inc. (Last Updated 7/13/2000)