[ros-dev] font penalty system

katahiromz . katayama.hirofumi.mz at gmail.com
Sat Jan 28 10:22:41 UTC 2017


Hello, this is katahiromz aka a Win32 programmer and tester from Japan.

At first, check out the x12 patch of CORE-6621. Please take a look at
the WeightFromStyle and GetFontPenalty functions.

The "DejaVu Sans Mono" fonts are in use, as substitute fonts. There is
a problem. The penalty weight of "DejaVu Sans Mono Oblique" is lighter
than one of "DejaVu Sans Mono Book" in the current penalty system of
Table 1.

The "Oblique" penalty is 4 of Italic Penalty. The "Book" penalty is 3
* ((400 - 350) / 10) == 15 of Weight Penalty.
So, Oblique < Book!

Should we adjust Italic Penalty to 16 or more?



More information about the Ros-dev mailing list