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

6.270 CADSetFont

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock or kCADLockingSkipLock
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
in theMacFontStr Str255
in theDosFontStr Str255
in theFontSize real
in theFontStyle integer A mask of font style constants
in theMaskedFontStyleMask integer A mask of font style constants
in theMaskedFontStyle integer A mask of font style constants
in theJustificationH integer A string horizontal justification constant
in theJustificationV integer A string vertical justification constant
out function result OSErr Error result code, also see Error handling

CADSetFont will set or clear the font style bits that are in parameter theMaskedFontStyleMask using the value of the corresponding bit in parameter theMaskedFontStyle. So, for example, to clear bit kCADMaskFontStyleBold for all the strings objects in theObjScope, pass theMaskedFontStyle = 0 and theMaskedFontStyleMask = kCADMaskFontStyleBold.

If theMaskedFontStyleMask is used (unequal to 0), parameter theFontStyle must be 0. If theFontStyle is used (unequal to 0), parameter theMaskedFontStyleMask must be 0. However, both theMaskedFontStyleMask and theFontStyle can be 0.