mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-22 01:34:21 +00:00
Minor clean-ups.
This commit is contained in:
parent
e6237b5154
commit
c76e500574
32 changed files with 329 additions and 357 deletions
|
|
@ -413,16 +413,12 @@ public:
|
|||
}
|
||||
|
||||
// Add a glyph to a font
|
||||
bool addGlyphToFont (const uint32 character,
|
||||
const tchar* fontName, bool bold, bool italic,
|
||||
CustomTypeface& dest)
|
||||
bool addGlyphToFont (const uint32 character, const String& fontName,
|
||||
bool bold, bool italic, CustomTypeface& dest)
|
||||
{
|
||||
FT_Face face = createFT_Face (fontName, bold, italic);
|
||||
|
||||
if (face != 0)
|
||||
return addGlyph (face, dest, character);
|
||||
|
||||
return false;
|
||||
return face != 0 && addGlyph (face, dest, character);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue