mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-07 04:10:08 +00:00
Tiny tweak to the typeface hinting algorithm.
This commit is contained in:
parent
d20279d1db
commit
01dc36d29d
1 changed files with 2 additions and 2 deletions
|
|
@ -186,8 +186,8 @@ private:
|
|||
{
|
||||
const float newT = std::floor (fontSize * t + 0.5f) / fontSize;
|
||||
const float newB = std::floor (fontSize * b + 0.5f) / fontSize;
|
||||
const float newM = std::floor (fontSize * m + 0.5f) / fontSize;
|
||||
|
||||
const float newM = std::floor (fontSize * m + 0.3f) / fontSize; // this is slightly biased so that lower-case letters
|
||||
// are more likely to become taller than shorter.
|
||||
upperScale = jlimit (0.9f, 1.1f, (newM - newT) / (m - t));
|
||||
lowerScale = jlimit (0.9f, 1.1f, (newB - newM) / (b - m));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue