Loading...
Searching...
No Matches
TypefaceMetrics Struct Reference

Font metrics using JUCE conventions. More...

#include <juce_Typeface.h>

Public Attributes

float ascent {}
 The proportion of the typeface's height that it above the baseline, as a value between 0 and 1.
 
float heightToPoints {}
 The factor by which a JUCE font height should be multiplied in order to convert to a font size in points.
 

Detailed Description

Font metrics using JUCE conventions.

Member Data Documentation

◆ ascent

float TypefaceMetrics::ascent {}

The proportion of the typeface's height that it above the baseline, as a value between 0 and 1.

Note that 'height' here refers to the result of adding the absolute ascent and descent values. That is, the sum of the ascent and descent will equal 1. The sum of the ascent and descent will normally differ from the em size of the font. That is, for a font size of 14pt, there will be 14 points per em, but the sum of the ascent and descent in points is unlikely to be equal to 14.

◆ heightToPoints

float TypefaceMetrics::heightToPoints {}

The factor by which a JUCE font height should be multiplied in order to convert to a font size in points.


The documentation for this struct was generated from the following file:
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram