Mac OS 9
GXFonts.h
Go to the documentation of this file.
1 
19 #ifndef __GXFONTS__
20 #define __GXFONTS__
21 
22 #ifndef __CONDITIONALMACROS__
23 #include <ConditionalMacros.h>
24 #endif
25 
26 #ifndef __GXMATH__
27 #include <GXMath.h>
28 #endif
29 
30 #ifndef __GXTYPES__
31 #include <GXTypes.h>
32 #endif
33 
34 #ifndef __SCALERSTREAMTYPES__
35 #include <ScalerStreamTypes.h>
36 #endif
37 
38 #if PRAGMA_ONCE
39 #pragma once
40 #endif
41 
42 #ifdef __cplusplus
43 extern "C"
44 {
45 #endif
46 
47 #if PRAGMA_IMPORT
48 #pragma import on
49 #endif
50 
51 #if PRAGMA_STRUCT_ALIGN
52 #pragma options align = mac68k
53 #elif PRAGMA_STRUCT_PACKPUSH
54 #pragma pack(push, 2)
55 #elif PRAGMA_STRUCT_PACK
56 #pragma pack(2)
57 #endif
58 
59 #if defined(__MWERKS__) && TARGET_CPU_68K
60 #pragma push
61 #pragma pointers_in_D0
62 #endif
63 
64 #if CALL_NOT_IN_CARBON
73  gxFont
74  GXNewFont(gxFontStorageTag storage, gxFontStorageReference reference,
75  gxFontAttribute attributes);
76 
85  gxFontStorageTag
86  GXGetFont(gxFont fontID, gxFontStorageReference *reference,
87  gxFontAttribute *attributes);
88 
97  gxFont
98  GXFindFont(gxFontStorageTag storage, gxFontStorageReference reference,
99  gxFontAttribute *attributes);
100 
109  void
110  GXSetFont(gxFont fontID, gxFontStorageTag storage,
111  gxFontStorageReference reference, gxFontAttribute attributes);
112 
121  void
122  GXDisposeFont(gxFont fontID);
123 
132  void
133  GXChangedFont(gxFont fontID);
134 
143  gxFontFormatTag
144  GXGetFontFormat(gxFont fontID);
145 
154  gxFont
156 
165  gxFont
166  GXSetDefaultFont(gxFont fontID);
167 
176  long
177  GXFindFonts(gxFont familyID, gxFontName name, gxFontPlatform platform,
178  gxFontScript script, gxFontLanguage language, long length,
179  const unsigned char text[], long index, long count, gxFont fonts[]);
180 
189  long
190  GXCountFontGlyphs(gxFont fontID);
191 
200  long
201  GXCountFontTables(gxFont fontID);
202 
211  long
212  GXGetFontTable(gxFont fontID, long index, void *tableData,
213  gxFontTableTag *tableTag);
214 
223  long
224  GXFindFontTable(gxFont fontID, gxFontTableTag tableTag, void *tableData,
225  long *index);
226 
235  long
236  GXGetFontTableParts(gxFont fontID, long index, long offset, long length,
237  void *tableData, gxFontTableTag *tableTag);
238 
247  long
248  GXFindFontTableParts(gxFont fontID, gxFontTableTag tableTag, long offset,
249  long length, void *tableData, long *index);
250 
259  long
260  GXSetFontTable(gxFont fontID, long index, gxFontTableTag tableTag, long length,
261  const void *tableData);
262 
271  long
272  GXSetFontTableParts(gxFont fontID, long index, gxFontTableTag tableTag,
273  long offset, long oldLength, long newLength,
274  const void *tableData);
275 
284  long
285  GXDeleteFontTable(gxFont fontID, long index, gxFontTableTag tableTag);
286 
295  long
296  GXCountFontNames(gxFont fontID);
297 
306  long
307  GXGetFontName(gxFont fontID, long index, gxFontName *name,
308  gxFontPlatform *platform, gxFontScript *script,
309  gxFontLanguage *language, unsigned char text[]);
310 
319  long
320  GXFindFontName(gxFont fontID, gxFontName name, gxFontPlatform platform,
321  gxFontScript script, gxFontLanguage language,
322  unsigned char text[], long *index);
323 
332  long
333  GXSetFontName(gxFont fontID, gxFontName name, gxFontPlatform platform,
334  gxFontScript script, gxFontLanguage language, long length,
335  const unsigned char text[]);
336 
345  long
346  GXDeleteFontName(gxFont fontID, long index, gxFontName name,
347  gxFontPlatform platform, gxFontScript script,
348  gxFontLanguage language);
349 
358  gxFontName
359  GXNewFontNameID(gxFont fontID);
360 
369  long
370  GXCountFontEncodings(gxFont fontID);
371 
380  gxFontPlatform
381  GXGetFontEncoding(gxFont fontID, long index, gxFontScript *script,
382  gxFontLanguage *language);
383 
392  long
393  GXFindFontEncoding(gxFont fontID, gxFontPlatform platform, gxFontScript script,
394  gxFontLanguage language);
395 
404  long
405  GXApplyFontEncoding(gxFont fontID, long index, long *length,
406  const unsigned char text[], long count,
407  unsigned short glyphs[], char was16Bit[]);
408 
417  long
418  GXCountFontVariations(gxFont fontID);
419 
428  long
429  GXFindFontVariation(gxFont fontID, gxFontVariationTag variationTag,
430  Fixed *minValue, Fixed *defaultValue, Fixed *maxValue,
431  gxFontName *name);
432 
441  gxFontVariationTag
442  GXGetFontVariation(gxFont fontID, long index, Fixed *minValue,
443  Fixed *defaultValue, Fixed *maxValue, gxFontName *name);
444 
453  long
454  GXCountFontInstances(gxFont fontID);
455 
464  gxFontName
465  GXGetFontInstance(gxFont fontID, long index, gxFontVariation variation[]);
466 
475  long
476  GXSetFontInstance(gxFont fontID, long index, gxFontName name,
477  const gxFontVariation variation[]);
478 
487  long
488  GXDeleteFontInstance(gxFont fontID, long index, gxFontName name);
489 
498  long
499  GXCountFontDescriptors(gxFont fontID);
500 
509  gxFontDescriptorTag
510  GXGetFontDescriptor(gxFont fontID, long index, Fixed *descriptorValue);
511 
520  long
521  GXFindFontDescriptor(gxFont fontID, gxFontDescriptorTag descriptorTag,
522  Fixed *descriptorValue);
523 
532  long
533  GXSetFontDescriptor(gxFont fontID, long index,
534  gxFontDescriptorTag descriptorTag, Fixed descriptorValue);
535 
544  long
545  GXDeleteFontDescriptor(gxFont fontID, long index,
546  gxFontDescriptorTag descriptorTag);
547 
556  long
557  GXCountFontFeatures(gxFont fontID);
558 
567  gxFontName
568  GXGetFontFeature(gxFont fontID, long index, gxFontFeatureFlag *flags,
569  long *settingCount, gxFontFeatureSetting settings[],
570  gxFontFeature *feature);
571 
580  gxFontName
581  GXFindFontFeature(gxFont fontID, gxFontFeature feature,
582  gxFontFeatureFlag *flags, long *settingCount,
583  gxFontFeatureSetting settings[], long *index);
584 
593  long
594  GXGetFontDefaultFeatures(gxFont fontID, gxRunFeature features[]);
595 
604  void
605  GXFlattenFont(gxFont source, scalerStream *stream, gxSpoolBlock *block);
606 
607 #endif /* CALL_NOT_IN_CARBON */
608 
609 #if defined(__MWERKS__) && TARGET_CPU_68K
610 #pragma pop
611 #endif
612 
613 #if PRAGMA_STRUCT_ALIGN
614 #pragma options align = reset
615 #elif PRAGMA_STRUCT_PACKPUSH
616 #pragma pack(pop)
617 #elif PRAGMA_STRUCT_PACK
618 #pragma pack()
619 #endif
620 
621 #ifdef PRAGMA_IMPORT_OFF
622 #pragma import off
623 #elif PRAGMA_IMPORT
624 #pragma import reset
625 #endif
626 
627 #ifdef __cplusplus
628 }
629 #endif
630 
631 #endif /* __GXFONTS__ */
Set up for compiler independent conditionals.
gxFontName GXGetFontInstance(gxFont fontID, long index, gxFontVariation variation[])
gxFontName GXNewFontNameID(gxFont fontID)
long GXFindFonts(gxFont familyID, gxFontName name, gxFontPlatform platform, gxFontScript script, gxFontLanguage language, long length, const unsigned char text[], long index, long count, gxFont fonts[])
long GXFindFontName(gxFont fontID, gxFontName name, gxFontPlatform platform, gxFontScript script, gxFontLanguage language, unsigned char text[], long *index)
void GXSetFont(gxFont fontID, gxFontStorageTag storage, gxFontStorageReference reference, gxFontAttribute attributes)
gxFontPlatform GXGetFontEncoding(gxFont fontID, long index, gxFontScript *script, gxFontLanguage *language)
long GXFindFontTable(gxFont fontID, gxFontTableTag tableTag, void *tableData, long *index)
long GXDeleteFontTable(gxFont fontID, long index, gxFontTableTag tableTag)
long GXDeleteFontInstance(gxFont fontID, long index, gxFontName name)
long GXSetFontTableParts(gxFont fontID, long index, gxFontTableTag tableTag, long offset, long oldLength, long newLength, const void *tableData)
long GXSetFontTable(gxFont fontID, long index, gxFontTableTag tableTag, long length, const void *tableData)
long GXDeleteFontName(gxFont fontID, long index, gxFontName name, gxFontPlatform platform, gxFontScript script, gxFontLanguage language)
gxFontName GXGetFontFeature(gxFont fontID, long index, gxFontFeatureFlag *flags, long *settingCount, gxFontFeatureSetting settings[], gxFontFeature *feature)
long GXGetFontTable(gxFont fontID, long index, void *tableData, gxFontTableTag *tableTag)
gxFontStorageTag GXGetFont(gxFont fontID, gxFontStorageReference *reference, gxFontAttribute *attributes)
long GXSetFontDescriptor(gxFont fontID, long index, gxFontDescriptorTag descriptorTag, Fixed descriptorValue)
gxFontDescriptorTag GXGetFontDescriptor(gxFont fontID, long index, Fixed *descriptorValue)
long GXSetFontInstance(gxFont fontID, long index, gxFontName name, const gxFontVariation variation[])
void GXFlattenFont(gxFont source, scalerStream *stream, gxSpoolBlock *block)
long GXCountFontGlyphs(gxFont fontID)
long GXCountFontNames(gxFont fontID)
long GXGetFontDefaultFeatures(gxFont fontID, gxRunFeature features[])
long GXCountFontInstances(gxFont fontID)
long GXSetFontName(gxFont fontID, gxFontName name, gxFontPlatform platform, gxFontScript script, gxFontLanguage language, long length, const unsigned char text[])
long GXCountFontVariations(gxFont fontID)
long GXCountFontEncodings(gxFont fontID)
gxFont GXFindFont(gxFontStorageTag storage, gxFontStorageReference reference, gxFontAttribute *attributes)
long GXDeleteFontDescriptor(gxFont fontID, long index, gxFontDescriptorTag descriptorTag)
long GXFindFontVariation(gxFont fontID, gxFontVariationTag variationTag, Fixed *minValue, Fixed *defaultValue, Fixed *maxValue, gxFontName *name)
long GXCountFontFeatures(gxFont fontID)
long GXFindFontEncoding(gxFont fontID, gxFontPlatform platform, gxFontScript script, gxFontLanguage language)
gxFont GXSetDefaultFont(gxFont fontID)
long GXFindFontTableParts(gxFont fontID, gxFontTableTag tableTag, long offset, long length, void *tableData, long *index)
long GXGetFontTableParts(gxFont fontID, long index, long offset, long length, void *tableData, gxFontTableTag *tableTag)
long GXCountFontDescriptors(gxFont fontID)
void GXDisposeFont(gxFont fontID)
long GXApplyFontEncoding(gxFont fontID, long index, long *length, const unsigned char text[], long count, unsigned short glyphs[], char was16Bit[])
gxFontName GXFindFontFeature(gxFont fontID, gxFontFeature feature, gxFontFeatureFlag *flags, long *settingCount, gxFontFeatureSetting settings[], long *index)
gxFontVariationTag GXGetFontVariation(gxFont fontID, long index, Fixed *minValue, Fixed *defaultValue, Fixed *maxValue, gxFontName *name)
long GXFindFontDescriptor(gxFont fontID, gxFontDescriptorTag descriptorTag, Fixed *descriptorValue)
gxFont GXGetDefaultFont(void)
long GXCountFontTables(gxFont fontID)
void GXChangedFont(gxFont fontID)
gxFontFormatTag GXGetFontFormat(gxFont fontID)
gxFont GXNewFont(gxFontStorageTag storage, gxFontStorageReference reference, gxFontAttribute attributes)
long GXGetFontName(gxFont fontID, long index, gxFontName *name, gxFontPlatform *platform, gxFontScript *script, gxFontLanguage *language, unsigned char text[])
QuickDraw GX math routine interfaces.
QuickDraw GX object and constant definitions.
long Fixed
Definition: MacTypes.h:153
Scaler streaming data structures and constants for OFA 1.x.
Definition: GXTypes.h:1110
Definition: GXTypes.h:1103
Definition: GXTypes.h:1308
Definition: GXTypes.h:736
Definition: ScalerStreamTypes.h:104