FontTable

References
public sealed class FontTable : IEnumerable<Font>
Font tables store the list of fonts in a Rhino document. The FontTable is now just a wrapper around the DimStyles table.

Properties

Count

#Since v5.0
Number of fonts in the table.
public int Count { get; }

CurrentIndex

#Since v5.0
At all times, there is a "current" font. Unless otherwise specified, new dimension objects are assigned to the current font. The current font is never deleted. Returns: Zero based font index of the current font.
public int CurrentIndex { get; }

Document

#Since v5.0
Document that owns this table.
public RhinoDoc Document { get; }

Indexers

this[]

#
Gets the font at a position.
public Font this[
index
The index of the font.
] { get; }
A font, or null if no font was not found at that position.

Methods

FindOrCreate

#Since v6.0
Get a DimensionStyle with the specified characteristics
public int FindOrCreate(
face,
bold,
italic,
template_style
the settings other than face, bold and italic are copied from the template_style
)

FindOrCreate

#ExampleSince v5.0
Get a DimensionStyle with the specified characteristics the settings other than face, bold and italic are copied from the current style
public int FindOrCreate(
face,
bold,
italic
)

GetEnumerator

#Since v5.0
public IEnumerator<Font> GetEnumerator()
Explicit

IEnumerable.GetEnumerator

#Since v5.0
IEnumerator IEnumerable.GetEnumerator()