https://bugs.documentfoundation.org/show_bug.cgi?id=69254
--- Comment #56 from Tor Lillqvist <[email protected]> ---
To comment #47:
Yes, seems so. If a typeface has more than 9 weights, those could not even in
theory be distinguished by LO's FontWeight. (And in practice, it is likely that
the mapping from the floating-point weights to the enum will cause overlaps
anyway even for less than 9, as seen originally here where both -0.5 and -0.4
were mapped to the same WEIGHT_LIGHT).
This is not unique to the Mac backend, the LO code for Windows has:
static FontWeight ImplWeightToSal( int nWeight )
{
if ( nWeight <= FW_THIN )
return WEIGHT_THIN;
else if ( nWeight <= FW_ULTRALIGHT )
return WEIGHT_ULTRALIGHT;
else if ( nWeight <= FW_LIGHT )
return WEIGHT_LIGHT;
else if ( nWeight < FW_MEDIUM )
return WEIGHT_NORMAL;
else if ( nWeight == FW_MEDIUM )
return WEIGHT_MEDIUM;
else if ( nWeight <= FW_SEMIBOLD )
return WEIGHT_SEMIBOLD;
else if ( nWeight <= FW_BOLD )
return WEIGHT_BOLD;
else if ( nWeight <= FW_ULTRABOLD )
return WEIGHT_ULTRABOLD;
else
return WEIGHT_BLACK;
}
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs