Important: The information in this document is obsolete and should not be used for new development.
GXConvertQDFont
You use theGXConvertQDfontfunction to translate the specification for a font and face in the GrafPort into a gxStyle.
long GXConvertQDfont(gxStyle theStyle, long txFont, long txFace);
theStyle- A gxStyle.
txFont- A long specifying a text font; same as in the GrafPort.
txFace- A long specifying a text style; same as in the GrafPort.
DESCRIPTION
TheGXConvertQDfontfunction picks thegxFontthat is the closest match for thetxFontandtxFaceparameters. If it does not find an exact match,GXConvertQDfontmight also set the style's font variation.The
GXConvertQDfontfunction also sets the style's encoding. It returns any style bits fromtxFacethat were not accounted for in thegxFontand variation. This permits the caller to construct agxTextFacebased on the returned style bits. Potentially all of the style bits can be matched. Currently only bold, italic, condense, and extended bits are matched. However, in the future more might be matched. You should not make any assumptions about what will or will not be matched.SPECIAL CONSIDERATIONS
If the translator callsGXConvertQDFont, it will already have mappedtxFont==0to the correct font by calling the Script Manager.