Next: , Previous: CADGetFill, Up: CAD areas and methods


6.105 CADGetFont

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
out theMacFontStr Str255
out theDosFontStr Str255
out theFontSize real
out theFontStyle integer A mask of font style constants
out theMaskedFontStyle integer A mask of font style constants
out theJustificationH integer A string horizontal justification constant
out theJustificationV integer A string vertical justification constant
out function result OSErr Error result code, also see Error handling

CADGetFont returns 0 for parameter theFontStyle, if the font styles of string objects in theObjScope differ. Parameter theMaskedFontStyle may not return 0. CADGetFont sets each style bit in parameter theMaskedFontStyle independently if that bit applies for all string objects in theObjScope.

If a font style bit in theMaskedFontStyle is set by CADGetFont, then all string objects have that font style bit set. If a font style bit in theMaskedFontStyle is not set by CADGetFont, then none or some string objects in theObjScope may have that font style bit set (but not all). This corresponds to how checkmarks in font style menus are usually set.