WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
144472
[Freetype] Add support for the font-synthesis property
https://bugs.webkit.org/show_bug.cgi?id=144472
Summary
[Freetype] Add support for the font-synthesis property
Martin Robinson
Reported
2015-04-30 14:41:59 PDT
r183494
added support for the font-synthesis property for the iOS and Mac ports, but we need this for Freetype ports as well.
Attachments
Patch
(2.76 KB, patch)
2015-04-30 14:43 PDT
,
Martin Robinson
no flags
Details
Formatted Diff
Diff
Patch
(2.84 KB, patch)
2015-05-01 07:56 PDT
,
Martin Robinson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Martin Robinson
Comment 1
2015-04-30 14:43:53 PDT
Created
attachment 252090
[details]
Patch
Myles C. Maxfield
Comment 2
2015-04-30 18:21:23 PDT
Comment on
attachment 252090
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=252090&action=review
> Source/WebCore/platform/graphics/freetype/FontPlatformDataFreeType.cpp:331 > + if (fontDescription.italic() && fontDescription.fontSynthesis() & FontSynthesisStyle
Why the difference in order between weight and italic?
Martin Robinson
Comment 3
2015-04-30 22:26:12 PDT
Comment on
attachment 252090
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=252090&action=review
>> Source/WebCore/platform/graphics/freetype/FontPlatformDataFreeType.cpp:331 >> + if (fontDescription.italic() && fontDescription.fontSynthesis() & FontSynthesisStyle > > Why the difference in order between weight and italic?
No reason. I think I just did that for some intuitive sense of readability. I'm happy to make it consistent. :)
Martin Robinson
Comment 4
2015-05-01 07:56:05 PDT
Created
attachment 252150
[details]
Patch
Sergio Villar Senin
Comment 5
2015-05-01 08:04:03 PDT
Comment on
attachment 252150
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=252150&action=review
> Source/WebCore/ChangeLog:3 > + [Freetype] Add support for the font-synthesis property
Nit: extra space here
> Source/WebCore/platform/graphics/freetype/FontPlatformDataFreeType.cpp:165 > + if (descriptionAllowsSyntheticBold && fontDescription.weight() >= FontWeightBold) {
We're doing an extra check for < FontWeightBold here but I guess it's so simple that we can leave with it.
Martin Robinson
Comment 6
2015-05-01 08:09:02 PDT
(In reply to
comment #5
)
> Comment on
attachment 252150
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=252150&action=review
> > > Source/WebCore/ChangeLog:3 > > + [Freetype] Add support for the font-synthesis property > > Nit: extra space here > > > Source/WebCore/platform/graphics/freetype/FontPlatformDataFreeType.cpp:165 > > + if (descriptionAllowsSyntheticBold && fontDescription.weight() >= FontWeightBold) { > > We're doing an extra check for < FontWeightBold here but I guess it's so > simple that we can leave with it.
I think in this case we have to check whether the font needs the synthetic bold and also whether the font-synthesis property allows it.
Martin Robinson
Comment 7
2015-05-01 09:01:30 PDT
Committed
r183673
: <
http://trac.webkit.org/changeset/183673
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug