SvgPlottingUtilGetCurrentFontSize Method

Return the current font size, in pixels.

Definition

Namespace: SvgPlotting
Assembly: SvgPlotting (in SvgPlotting.dll) Version: 25.2714.4126
C#
public static float GetCurrentFontSize(
	SvgImageItem svg,
	HtmlNodeItem node
)

Parameters

svg  SvgImageItem
Reference to the SVG object in focus.
node  HtmlNodeItem
Reference to the node for which the active font size will be found.

Return Value

Single
The current font size of the specified node, if legitimate. Otherwise, 15.9996 (12pt).

Remarks

GetCurrentFontSize is similar to GetDocumentFontSize because they both recurse backward up the chain through their parent predecessors. However, GetDocumentFontSize will update each time it finds a source closer to the root, while GetCurrentFontSize updates only the first time backward it finds a source.

See Also