67 static Ptr createSystemTypefaceFor (
const Font& font);
73 static Ptr createSystemTypefaceFor (
const void* fontFileData,
size_t fontFileDataSize);
129 static void setTypefaceCacheSize (
int numFontsToCache);
132 static void clearTypefaceCache();
137 static void scanFolderForFonts (
const File& folder);
143 void applyVerticalHintingTransform (
float fontHeight,
Path& path);
151 static Ptr getFallbackTypeface();
154 struct HintingParams;
Holds a resizable array of primitive or copy-by-value objects.
A table of horizontal scan-line segments - used for rasterising Paths.
Represents a local file or directory.
Represents a particular font, including its size, style, etc.
A path is a sequence of lines and curves that may either form a closed shape or be open-ended.
A base class which provides methods for reference-counting.
A typeface represents a size-independent font.
virtual float getStringWidth(const String &text)=0
Measures the width of a line of text.
virtual float getAscent() const =0
Returns the ascent of the font, as a proportion of its height.
const String & getStyle() const noexcept
Returns the font style of the typeface.
virtual bool isSuitableForFont(const Font &) const
Returns true if this typeface can be used to render the specified font.
virtual bool getOutlineForGlyph(int glyphNumber, Path &path)=0
Returns the outline for a glyph.
virtual bool isHinted() const
Returns true if the typeface uses hinting.
const String & getName() const noexcept
Returns the font family of the typeface.
virtual float getHeightToPointsFactor() const =0
Returns the value by which you should multiply a JUCE font-height value to convert it to the equivale...
~Typeface() override
Destructor.
virtual float getDescent() const =0
Returns the descent of the font, as a proportion of its height.
virtual void getGlyphPositions(const String &text, Array< int > &glyphs, Array< float > &xOffsets)=0
Converts a line of text into its glyph numbers and their positions.