documentationfor yFiles for HTML 2.6

Usages of Font

Properties

fontin DefaultLabelStyleGets or sets the typeface to use for the label.
fontin WebGL2DefaultLabelStyleGets the font for the label.

Method Return Values

createCopy (string?, number?, FontStyle?, FontWeight?, number?, TextDecoration?)in FontCreates a copy with the values of this instance or optionally the explicitly specified values.
from (Font)in FontCreates a Font instance from the given font-like object by performing automatic type conversion.

Method Parameters

DefaultLabelStyle ()in DefaultLabelStyleCreates a new instance using DefaultLabelStyleRenderer as renderer.
DefaultLabelStyle (ILabelStyleRenderer, )in DefaultLabelStyleCreates a new instance using the provided renderer.
addTextElements (SVGElement, Font, string, Size, TextWrapping, boolean)in DefaultLabelStyleRendererAdd the text content to the provided SVG text element.
measureText (string, Font, Size)in DefaultLabelStyleRendererCalculate the width and height required to render the provided text using the provided Font.
MarkupLabelStyle ()in MarkupLabelStyleCreates a new instance using MarkupLabelStyleRenderer as renderer.
MarkupLabelStyle (ILabelStyleRenderer, )in MarkupLabelStyleCreates a new instance using the provided renderer.
addTextElements (SVGElement, Font, string, Size, TextWrapping, boolean)in MarkupLabelStyleRenderer
measureText (string, Font, Size)in MarkupLabelStyleRenderer
addText (SVGGElement | SVGTextElement, string, Font, Size?, TextWrapping?, TextMeasurePolicy?, boolean?, GeneralPath?)in TextRenderSupportAdd the text content to the provided SVG text element.
invalidateTextMeasurementCache (Font?)in TextRenderSupportResets the cache that stores for a Font which actual TextMeasurePolicy is used if AUTOMATIC is set.
measureText (string, Font, Size?, TextWrapping?, TextMeasurePolicy?)in TextRenderSupportCalculates the width and height required to render the provided text using the provided Font, taking text-wrapping into account.
from (Font)in FontCreates a Font instance from the given font-like object by performing automatic type conversion.
WebGL2DefaultLabelStyle (Font?, Color?, Color?, WebGL2Stroke?, HorizontalTextAlignment?, number?, WebGL2LabelShape?, WebGL2Effect?, number?, WebGL2TextureRendering?, TextWrapping?, TextWrappingShape?, number?, VerticalTextAlignment?)in WebGL2DefaultLabelStyleCreates a new label style that is rendered with WebGL2.