42 #ifndef __TEXTCOMMON__
59 #if PRAGMA_STRUCT_ALIGN
60 #pragma options align = mac68k
61 #elif PRAGMA_STRUCT_PACKPUSH
63 #elif PRAGMA_STRUCT_PACK
75 kFMDefaultOptions = kNilOptions
81 kFMDefaultActivationContext = kFMDefaultOptions,
82 kFMGlobalActivationContext = 0x00000001,
83 kFMLocalActivationContext = kFMDefaultActivationContext
89 kFMDefaultIterationScope = kFMDefaultOptions,
90 kFMGlobalIterationScope = 0x00000001,
91 kFMLocalIterationScope = kFMDefaultIterationScope
98 kPlatformDefaultGuiFontID = applFont
104 kPlatformDefaultGuiFontID = -1
174 #if CALL_NOT_IN_CARBON
208 GetFNum(ConstStr255Param name,
short *familyID);
221 #if CALL_NOT_IN_CARBON
390 short *yMax,
short *yMin, FixedPtr awArray, FixedPtr lsbArray,
439 #if CALL_NOT_IN_CARBON
453 #if CALL_NOT_IN_CARBON
463 getfnum(
const char *theName,
short *familyID);
572 void *iRefCon, OptionBits iOptions,
596 void *iRefCon, OptionBits iOptions,
609 FMFontFamily *oFontFamily);
621 void *iRefCon, OptionBits iOptions,
645 void *iRefCon, OptionBits iOptions,
741 TextEncoding *oTextEncoding);
776 ByteCount *oActualLength);
788 ByteCount iLength,
void *iBuffer,
789 ByteCount *oActualLength);
824 FMFontFamily iFontFamily, FMFontStyle iStyle,
FMFont *oFont,
825 FMFontStyle *oIntrinsicStyle);
837 FMFontStyle *oStyle);
899 void *iRefCon, OptionBits iOptions);
912 void *iRefCon, OptionBits iOptions);
937 FMFontSize iFontSize,
938 FSSpec *oFontContainer);
950 FMFontSize iFontSize, ByteCount iBufferSize,
951 void *ioBuffer, ByteCount *oSize);
954 typedef FMFontSize FontPointSize;
963 kFMUseGlobalScopeOption = 0x00000001
974 kFontIDSanFrancisco = 8,
977 kFontIDLosAngeles = 12,
979 kFontIDHelvetica = 21,
1028 Str255 baseFontName;
1116 newYork = kFontIDNewYork,
1117 geneva = kFontIDGeneva,
1118 monaco = kFontIDMonaco,
1119 venice = kFontIDVenice,
1120 london = kFontIDLondon,
1121 athens = kFontIDAthens,
1122 sanFran = kFontIDSanFrancisco,
1123 toronto = kFontIDToronto,
1124 cairo = kFontIDCairo,
1125 losAngeles = kFontIDLosAngeles,
1126 times = kFontIDTimes,
1127 helvetica = kFontIDHelvetica,
1128 courier = kFontIDCourier,
1129 symbol = kFontIDSymbol,
1130 mobile = kFontIDMobile
1137 #if PRAGMA_STRUCT_ALIGN
1138 #pragma options align = reset
1139 #elif PRAGMA_STRUCT_PACKPUSH
1141 #elif PRAGMA_STRUCT_PACK
1145 #ifdef PRAGMA_IMPORT_OFF
1148 #pragma import reset
1157 athens = kFontIDAthens,
1158 sanFran = kFontIDSanFrancisco,
1159 toronto = kFontIDToronto,
1160 cairo = kFontIDCairo,
1161 losAngeles = kFontIDLosAngeles,
1162 times = kFontIDTimes,
1163 helvetica = kFontIDHelvetica,
1164 courier = kFontIDCourier,
1165 symbol = kFontIDSymbol,
1166 mobile = kFontIDMobile
1174 #if PRAGMA_STRUCT_ALIGN
1175 #pragma options align = reset
1176 #elif PRAGMA_STRUCT_PACKPUSH
1178 #elif PRAGMA_STRUCT_PACK
1182 #ifdef PRAGMA_IMPORT_OFF
1185 #pragma import reset
Public interfaces for Apple Type Services components.
UInt32 FMFont
Definition: ATSTypes.h:74
File Manager (MFS, HFS, and HFS+) Interfaces.
OSErr OutlineMetrics(short byteCount, const void *textPtr, Point numer, Point denom, short *yMax, short *yMin, FixedPtr awArray, FixedPtr lsbArray, RectPtr boundsArray)
OSStatus FMGetFontContainerFromFontFamilyInstance(FMFontFamily iFontFamily, FMFontStyle iStyle, FMFontSize iFontSize, FSSpec *oFontContainer)
void getfontname(short familyID, char *theName)
OSStatus FMResetFontFamilyInstanceIterator(FMFontFamily iFontFamily, FMFontFamilyInstanceIterator *ioIterator)
OSStatus FMGetFontFamilyTextEncoding(FMFontFamily iFontFamily, TextEncoding *oTextEncoding)
ATSFontFamilyRef FMGetATSFontFamilyRefFromFontFamily(FMFontFamily iFamily)
void SetOutlinePreferred(Boolean outlinePreferred)
SetOutlinePreferred Make TrueType fonts preferred over bitmapped fonts.
void SetFScaleDisable(Boolean fscaleDisable)
OSStatus FMGetFontTable(FMFont iFont, FourCharCode iTag, ByteOffset iOffset, ByteCount iLength, void *iBuffer, ByteCount *oActualLength)
OSStatus FMGetFontFromFontFamilyInstance(FMFontFamily iFontFamily, FMFontStyle iStyle, FMFont *oFont, FMFontStyle *oIntrinsicStyle)
Boolean IsAntiAliasedTextEnabled(SInt16 *oMinFontSize)
void SetPreserveGlyph(Boolean preserveGlyph)
SetPreserveGlyph Set whether to preserve outline glyph shape.
Boolean RealFont(short fontNum, short size)
OSStatus FMGetFontGeneration(FMFont iFont, FMGeneration *oGeneration)
short GetAppFont(void)
Fetch the ID of the current application font.
OSStatus FMResetFontFamilyIterator(const FMFilter *iFilter, void *iRefCon, OptionBits iOptions, FMFontFamilyIterator *ioIterator)
void getfnum(const char *theName, short *familyID)
short GetDefFontSize(void)
Retrieve the size of the current default font.
void SetFontLock(Boolean lockFlag)
FMFontFamily FMGetFontFamilyFromATSFontFamilyRef(ATSFontFamilyRef iFamily)
OSStatus FMGetFontFamilyResource(FMFontFamily iFontFamily, FMFontStyle iFontStyle, FMFontSize iFontSize, ByteCount iBufferSize, void *ioBuffer, ByteCount *oSize)
OSStatus FMDisposeFontFamilyIterator(FMFontFamilyIterator *ioIterator)
ATSFontRef FMGetATSFontRefFromFont(FMFont iFont)
void FontMetrics(FMetricRecPtr theMetrics)
FMFont FMGetFontFromATSFontRef(ATSFontRef iFont)
short GetSysFont(void)
Fetch the ID of the current system font.
OSStatus FMDeactivateFonts(const FSSpec *iFontContainer, const FMFilter *iFilter, void *iRefCon, OptionBits iOptions)
FMGeneration FMGetGeneration(void)
Boolean GetOutlinePreferred(void)
GetOutlinePreferred Determine if TrueType fonts are preferred.
OSStatus FMGetFontFamilyInstanceFromFont(FMFont iFont, FMFontFamily *oFontFamily, FMFontStyle *oStyle)
OSErr FetchFontInfo(SInt16 fontID, SInt16 fontSize, SInt16 fontStyle, FontInfo *info)
FMFontFamily FMGetFontFamilyFromName(ConstStr255Param iName)
* don
Definition: Fonts.h:1156
OSStatus FMCreateFontFamilyInstanceIterator(FMFontFamily iFontFamily, FMFontFamilyInstanceIterator *ioIterator)
void SetFractEnable(Boolean fractEnable)
Enable/disable use of fractional character widths.
OSStatus FMCreateFontFamilyIterator(const FMFilter *iFilter, void *iRefCon, OptionBits iOptions, FMFontFamilyIterator *ioIterator)
OSStatus FMCreateFontIterator(const FMFilter *iFilter, void *iRefCon, OptionBits iOptions, FMFontIterator *ioIterator)
void QDTextBounds(short byteCount, const void *textAddr, Rect *bounds)
FMFontFamily FontFamilyID
Definition: Fonts.h:953
OSStatus FMGetFontFamilyGeneration(FMFontFamily iFontFamily, FMGeneration *oGeneration)
Boolean IsOutline(Point numer, Point denom)
OSStatus FMGetFontFormat(FMFont iFont, FourCharCode *oFormat)
OSStatus FMGetFontTableDirectory(FMFont iFont, ByteCount iLength, void *iBuffer, ByteCount *oActualLength)
OSStatus FMGetFontFamilyName(FMFontFamily iFontFamily, Str255 oName)
void GetFontName(short familyID, Str255 name)
OSStatus FMActivateFonts(const FSSpec *iFontContainer, const FMFilter *iFilter, void *iRefCon, OptionBits iOptions)
FMOutPtr FMSwapFont(const FMInput *inRec)
Boolean GetPreserveGlyph(void)
GetPreserveGlyph Find whether TrueType glyph shape is preserved or.
OSStatus FMDisposeFontIterator(FMFontIterator *ioIterator)
OSStatus SetAntiAliasedTextEnabled(Boolean iEnable, SInt16 iMinFontSize)
void GetFNum(ConstStr255Param name, short *familyID)
OSStatus FMGetNextFontFamilyInstance(FMFontFamilyInstanceIterator *ioIterator, FMFont *oFont, FMFontStyle *oStyle, FMFontSize *oSize)
OSStatus FMGetFontContainer(FMFont iFont, FSSpec *oFontContainer)
OSStatus FMDisposeFontFamilyInstanceIterator(FMFontFamilyInstanceIterator *ioIterator)
OSStatus FMResetFontIterator(const FMFilter *iFilter, void *iRefCon, OptionBits iOptions, FMFontIterator *ioIterator)
OSStatus FMGetNextFontFamily(FMFontFamilyIterator *ioIterator, FMFontFamily *oFontFamily)
OSStatus FMGetNextFont(FMFontIterator *ioIterator, FMFont *oFont)
Basic Macintosh data types.
long Fixed
Definition: MacTypes.h:153
unsigned char Boolean
Definition: MacTypes.h:318
Interface to Quickdraw Graphics.
TextEncoding-related types and constants, and prototypes for related functions.
Definition: ATSTypes.h:313
Definition: ATSTypes.h:92
Definition: ATSTypes.h:82
Definition: ATSTypes.h:87
Handle wTabHandle
Definition: Fonts.h:169
Fixed widMax
Definition: Fonts.h:168
Fixed descent
Definition: Fonts.h:166
Fixed leading
Definition: Fonts.h:167
long ffWTabOff
Definition: Fonts.h:1085
short ffAscent
Definition: Fonts.h:1081
long ffStylOff
Definition: Fonts.h:1087
short ffIntl[2]
Definition: Fonts.h:1089
short ffFirstChar
Definition: Fonts.h:1079
long ffKernOff
Definition: Fonts.h:1086
short ffLeading
Definition: Fonts.h:1083
short ffLastChar
Definition: Fonts.h:1080
short ffDescent
Definition: Fonts.h:1082
short ffFamID
Definition: Fonts.h:1078
short ffVersion
Definition: Fonts.h:1090
short ffWidMax
Definition: Fonts.h:1084
short ffProperty[9]
Definition: Fonts.h:1088
Definition: QuickdrawText.h:139
short kernMax
Definition: Fonts.h:1099
short fRectHeight
Definition: Fonts.h:1102
short lastChar
Definition: Fonts.h:1097
short ascent
Definition: Fonts.h:1104
short fRectWidth
Definition: Fonts.h:1101
short widMax
Definition: Fonts.h:1098
short leading
Definition: Fonts.h:1106
short firstChar
Definition: Fonts.h:1096
short rowWords
Definition: Fonts.h:1107
short descent
Definition: Fonts.h:1105
unsigned short owTLoc
Definition: Fonts.h:1103
short nDescent
Definition: Fonts.h:1100
short kernLength
Definition: Fonts.h:1041
char kernSecond
Definition: Fonts.h:1034
short kernWidth
Definition: Fonts.h:1035
Definition: MacTypes.h:520
Definition: MacTypes.h:527
Point inNumer
Definition: Fonts.h:1059
short hFactor
Definition: Fonts.h:1068
Handle tabFont
Definition: Fonts.h:1052
short aFID
Definition: Fonts.h:1061
Boolean usedFam
Definition: Fonts.h:1063
short face
Definition: Fonts.h:1057
long sExtra
Definition: Fonts.h:1053
short tabSize
Definition: Fonts.h:1070
short vOutput
Definition: Fonts.h:1065
Handle fHand
Definition: Fonts.h:1062
long style
Definition: Fonts.h:1054
short hOutput
Definition: Fonts.h:1066
short fSize
Definition: Fonts.h:1056
short vFactor
Definition: Fonts.h:1067
short aSize
Definition: Fonts.h:1069
short fID
Definition: Fonts.h:1055
UInt8 aFace
Definition: Fonts.h:1064
short device
Definition: Fonts.h:1058
Point inDenom
Definition: Fonts.h:1060