1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-22 01:34:21 +00:00

Font: Remove unnecessary conversion from point-height to juce-height when using FontOptions

This commit is contained in:
reuk 2024-05-13 13:10:56 +01:00
parent 5b2f9d4019
commit 365e8a235d
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -372,9 +372,6 @@ auto legacyArgs (Args&&... args)
if (result.getName().isEmpty())
result = result.withName (Font::getDefaultSansSerifFontName());
if (result.getPointHeight() > 0.0f)
result = result.withHeight (result.getPointHeight());
return result;
}