class Blend2D::Text::FontMetrics

Defined in:

blend2d/text/font_metrics.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(font : Font) #

Initialized this FontMetrics object such that it pulls its data from a Font.


[View source]

Instance Method Detail

def ascent #

The font ascent in a horizontal orientation.


[View source]
def capital_height #

The maximum height of a capital letter above the baseline.


[View source]
def descent #

The font descent in a horizontal orientation.


[View source]
def line_gap #

The line gap of the font.


[View source]
def lower_height #

The distance between the baseline and the mean line of lower-case characters.


[View source]
def size #

The font size.


[View source]
def strikethrough_position #

The strikethrough position.


[View source]
def strikethrough_thickness #

The strikethrough thickness.


[View source]
def underline_position #

The underline position.


[View source]
def underline_thickness #

The underline thickness.


[View source]
def vertical_ascent #

The font ascent in a vertical orientation.


[View source]
def vertical_descent #

The font descent in a vertical orientation.


[View source]