mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Minor clean-ups.
This commit is contained in:
parent
5f8069719e
commit
7a3453f48b
32 changed files with 219 additions and 277 deletions
|
|
@ -194,11 +194,10 @@ void CustomTypeface::addKerningPair (const juce_wchar char1, const juce_wchar ch
|
|||
{
|
||||
if (extraAmount != 0)
|
||||
{
|
||||
GlyphInfo* const g = findGlyph (char1, true);
|
||||
jassert (g != nullptr); // can only add kerning pairs for characters that exist!
|
||||
|
||||
if (g != nullptr)
|
||||
if (GlyphInfo* const g = findGlyph (char1, true))
|
||||
g->addKerningPair (char2, extraAmount);
|
||||
else
|
||||
jassertfalse; // can only add kerning pairs for characters that exist!
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue