Usage AnnoObjSetFont(yDPI As Long, Height As Long, Width As Long, Escapement As Long, Orientation As Long, Weight As Long, Italic As Boolean, Underline As Boolean, StrikeOut As Boolean, CharSet As Integer, OutPrecision As Integer, ClipPrecision As Integer, Quality As Integer, PitchAndFamily As Integer, FaceName As String)
Description Sets the font type for the selected aotNote (=2) object.
Parameters yDPI Long The vertical resolution of the background image to scale the font proportionally
Height Long The height of the font, in logical units
Width Long The average character width, in logical units
Escapement Long The angle of a line of text relative to the bottom of the page
Orientation Long The angle of a character relative to the bottom of the page
Weight Long The weight of the font, in the range 0 through 1000
Italic Boolean If True, italic font is used
Underline Boolean If True, underline font is used
StrikeOut Boolean If True, strike out font is used
CharSet Integer The character set. The following values are defined:
acsAnsi(=0)
acsSymbol (=2)
acsOem (=255)
OutPrecision Integer The output precision. The following values are defined:
aopDefault (=0)
aopString (=1)
aopCharacter (=2)
aopStroke (=3)
ClipPrecision Integer The clipping precision. The following values are defined:
acpDefault (=0)
acpCharacter (=1)
acpStroke (=2)
Quality Integer The output quality. The following values are defined:
aquDefault (=0)
aquDraft (=1)
aquProof (=2)
PitchAndFamily Integer The the pitch and family of the font. The following values are defined:
afpDefault (=0)
afpDraft (=1)
afpProof(=2)
affDontCare (=0)
affRoman (=16)
affSwiss (=32)
affModern (=48)
affScript (=64)
affDecorative (=80)
Use the boolean Or operator to join the pitch constant with the family constant.
FaceName String The typeface name of the font
Return value None
Programming Notes See Microsoft Windows API's LOGFONT structure for more information.