AnnSetFontSize method (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AnnSetFontSize(HANNOBJECT hObject, double dFontSize, bool bSelected)

Delphi Syntax

Function AnnSetFontSize (hObject: HANNOBJECT; dFontSize: L_DOUBLE; bSelected: Boolean ): L_INT

Overview

Refer to Implementing Annotations.

Remarks

(Document/Medical only) Sets the font size of one or more annotation objects.

The font size of an object is relative to its container object. The height of a font is interpreted using the container's vertical scaling factor. For example, suppose you want the font to appear as a 10-point font on your screen using the current scaling factor. You would use the following calculation, where A is the pixel height of a 10-point font, B is the value that you get from the AnnGetScalarX method, and C is the value that you get from the AnnGetScalarY method:

dFontSize = A / sqrt( B * C )

For more information, refer to Low-Level Coordinate System for Annotations.

This method does not affect objects that do not have this property or that do not let you change the property. For descriptions of the various types of objects and their properties, refer to Types of Annotations.

See Also

Elements:

AnnGetFontBold method, AnnSetFontBold method, AnnSetFontName method, AnnGetFontName method, AnnGetFontSize method, AnnSetFontUnderline method, AnnGetFontUnderline method, AnnSetFontStrikeThrough method, AnnGetFontStrikeThrough method, AnnSetFontItalic method, AnnGetFontItalic method

Topics:

Annotations (Document/Medical only): Object Manipulation