Chromium Code Reviews
DescriptionMac: Fix PlatformFontMac::DeriveFont for underline font style.
PlatformFontMac::DeriveFont derives the font from the existing font descriptor
if only the font size has to be altered. But in this case, if the existing font
has the underline style set, it is lost in the derived PlatformFontMac instance.
This is because NSFont does not support underline as a font trait and while
creating the derived PlatformFontMac instance, we fail to set the underline
property in the derived PlatformFontMac instance.
This CL fixes the issue by passing the underline style to the PlatformFontMac
constructor. A test is also added which fails for the current master on Mac.
BUG=605404
TEST=On Mac, build and run views_examples_with_content_exe. Select the "Text
Styles" example. Check "Underline". Verify the text gets underlined. It becoming
bold is another issue that will be fixed in a follow-up.
Patch Set 1 #
Total comments: 7
Dependent Patchsets: Messages
Total messages: 16 (12 generated)
|
|||||||||||||||||||||||||||||||||||||