|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
Public Member Functions | |
| FreeTypeTypeface (const Font &font) | |
| FreeTypeTypeface (const void *data, size_t dataSize) | |
| void | initialiseCharacteristics (const String &fontName, const String &fontStyle) |
| bool | loadGlyphIfPossible (const juce_wchar character) override |
| If a subclass overrides this, it can load glyphs into the font on-demand. | |
Public Member Functions inherited from juce::CustomTypeface | |
| CustomTypeface () | |
| Creates a new, empty typeface. | |
| CustomTypeface (InputStream &serialisedTypefaceStream) | |
| Loads a typeface from a previously saved stream. | |
| ~CustomTypeface () override | |
| Destructor. | |
| void | clear () |
| Resets this typeface, deleting all its glyphs and settings. | |
| void | setCharacteristics (const String &fontFamily, float ascent, bool isBold, bool isItalic, juce_wchar defaultCharacter) noexcept |
| Sets the vital statistics for the typeface. | |
| void | setCharacteristics (const String &fontFamily, const String &fontStyle, float ascent, juce_wchar defaultCharacter) noexcept |
| Sets the vital statistics for the typeface. | |
| void | addGlyph (juce_wchar character, const Path &path, float width) noexcept |
| Adds a glyph to the typeface. | |
| void | addKerningPair (juce_wchar char1, juce_wchar char2, float extraAmount) noexcept |
| Specifies an extra kerning amount to be used between a pair of characters. | |
| void | addGlyphsFromOtherTypeface (Typeface &typefaceToCopy, juce_wchar characterStartIndex, int numCharacters) noexcept |
| Adds a range of glyphs from another typeface. | |
| bool | writeToStream (OutputStream &outputStream) |
| Saves this typeface as a Juce-formatted font file. | |
| float | getAscent () const override |
| Returns the ascent of the font, as a proportion of its height. | |
| float | getDescent () const override |
| Returns the descent of the font, as a proportion of its height. | |
| float | getHeightToPointsFactor () const override |
| Returns the value by which you should multiply a JUCE font-height value to convert it to the equivalent point-size. | |
| float | getStringWidth (const String &) override |
| Measures the width of a line of text. | |
| void | getGlyphPositions (const String &, Array< int > &glyphs, Array< float > &xOffsets) override |
| Converts a line of text into its glyph numbers and their positions. | |
| bool | getOutlineForGlyph (int glyphNumber, Path &) override |
| Returns the outline for a glyph. | |
| EdgeTable * | getEdgeTableForGlyph (int glyphNumber, const AffineTransform &, float fontHeight) override |
| Returns a new EdgeTable that contains the path for the given glyph, with the specified transform applied. | |
Public Member Functions inherited from juce::Typeface | |
| const String & | getName () const noexcept |
| Returns the font family of the typeface. | |
| const String & | getStyle () const noexcept |
| Returns the font style of the typeface. | |
| ~Typeface () override | |
| Destructor. | |
| virtual bool | isSuitableForFont (const Font &) const |
| Returns true if this typeface can be used to render the specified font. | |
| virtual bool | isHinted () const |
| Returns true if the typeface uses hinting. | |
| void | applyVerticalHintingTransform (float fontHeight, Path &path) |
| Makes an attempt at performing a good overall distortion that will scale a font of the given size to align vertically with the pixel grid. | |
Public Member Functions inherited from juce::ReferenceCountedObject | |
| void | incReferenceCount () noexcept |
| Increments the object's reference count. | |
| void | decReferenceCount () noexcept |
| Decreases the object's reference count. | |
| bool | decReferenceCountWithoutDeleting () noexcept |
| Decreases the object's reference count. | |
| int | getReferenceCount () const noexcept |
| Returns the object's current reference count. | |
Additional Inherited Members | |
Public Types inherited from juce::Typeface | |
| using | Ptr = ReferenceCountedObjectPtr< Typeface > |
| A handy typedef for a pointer to a typeface. | |
Static Public Member Functions inherited from juce::Typeface | |
| static Ptr | createSystemTypefaceFor (const Font &font) |
| Creates a new system typeface. | |
| static Ptr | createSystemTypefaceFor (const void *fontFileData, size_t fontFileDataSize) |
| Attempts to create a font from some raw font file data (e.g. | |
| static void | setTypefaceCacheSize (int numFontsToCache) |
| Changes the number of fonts that are cached in memory. | |
| static void | clearTypefaceCache () |
| Clears any fonts that are currently cached in memory. | |
| static void | scanFolderForFonts (const File &folder) |
| On some platforms, this allows a specific path to be scanned. | |
Protected Member Functions inherited from juce::Typeface | |
| Typeface (const String &name, const String &style) noexcept | |
Protected Member Functions inherited from juce::ReferenceCountedObject | |
| ReferenceCountedObject ()=default | |
| Creates the reference-counted object (with an initial ref count of zero). | |
| ReferenceCountedObject (const ReferenceCountedObject &) noexcept | |
| Copying from another object does not affect this one's reference-count. | |
| ReferenceCountedObject (ReferenceCountedObject &&) noexcept | |
| Copying from another object does not affect this one's reference-count. | |
| ReferenceCountedObject & | operator= (const ReferenceCountedObject &) noexcept |
| Copying from another object does not affect this one's reference-count. | |
| ReferenceCountedObject & | operator= (ReferenceCountedObject &&) noexcept |
| Copying from another object does not affect this one's reference-count. | |
| virtual | ~ReferenceCountedObject () |
| Destructor. | |
| void | resetReferenceCount () noexcept |
| Resets the reference count to zero without deleting the object. | |
Static Protected Member Functions inherited from juce::Typeface | |
| static Ptr | getFallbackTypeface () |
Protected Attributes inherited from juce::CustomTypeface | |
| juce_wchar | defaultCharacter |
| float | ascent |
Protected Attributes inherited from juce::Typeface | |
| String | name |
| String | style |
Definition at line 311 of file juce_Fonts_freetype.cpp.
Definition at line 314 of file juce_Fonts_freetype.cpp.
Definition at line 323 of file juce_Fonts_freetype.cpp.
| void juce::FreeTypeTypeface::initialiseCharacteristics | ( | const String & | fontName, |
| const String & | fontStyle | ||
| ) |
Definition at line 331 of file juce_Fonts_freetype.cpp.
|
overridevirtual |
If a subclass overrides this, it can load glyphs into the font on-demand.
When methods such as getGlyphPositions() or getOutlineForGlyph() are asked for a particular character and there's no corresponding glyph, they'll call this method so that a subclass can try to add that glyph, returning true if it manages to do so.
Reimplemented from juce::CustomTypeface.
Definition at line 338 of file juce_Fonts_freetype.cpp.