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. | |
Font metrics using JUCE conventions.
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.
float TypefaceMetrics::heightToPoints {} |
The factor by which a JUCE font height should be multiplied in order to convert to a font size in points.