Page MenuHomePhabricator

Bug 1600470 - Reduce the emboldening strength used for synthetic-bold faces with FreeType. r=lsalzman
ClosedPublic

Authored by jfkthame on Dec 15 2019, 6:44 PM.

Diff Detail

Repository
rMOZILLACENTRAL mozilla-central
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

jfkthame created this revision.Dec 15 2019, 6:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 15 2019, 6:44 PM
phab-bot requested review of this revision.Dec 15 2019, 6:44 PM
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: Restricted Project.

Code analysis found 34 defects in the diff 208038:

  • 34 defects found by clang-format

You can run this analysis locally with:

  • ./mach clang-format -s -p gfx/2d/Factory.cpp (C/C++)

For your convenience, here is a patch that fixes all the source-test-clang-format defects (use it in your repository with hg import or git apply -p0).

If you see a problem in this automated review, please report it here.

lsalzman added inline comments.Dec 15 2019, 9:02 PM
gfx/2d/Factory.cpp
206 ↗(On Diff #208038)

There's no need to use dlsym here since FT_GlyphSlot_Embolden is ancient and dates back to FreeType 2.1, which is way older than the cutoff we set for FT versions anyway...

jfkthame marked an inline comment as done.Dec 16 2019, 11:49 AM
jfkthame added inline comments.
gfx/2d/Factory.cpp
206 ↗(On Diff #208038)

Fair enough - it was just copied from what we have in SkFontHost_cairo.cpp, but let's drop it.

jfkthame updated this revision to Diff 208225.Dec 16 2019, 11:50 AM
jfkthame marked an inline comment as done.

Drop dlsym, fix clang-format issues.

jfkthame updated this revision to Diff 208234.Dec 16 2019, 12:17 PM

Add missing #include.

lsalzman accepted this revision.Dec 16 2019, 2:40 PM
This revision is now accepted and ready to land.Dec 16 2019, 2:40 PM
opoprus reopened this revision.Dec 16 2019, 8:55 PM
This revision is now accepted and ready to land.Dec 16 2019, 8:55 PM
jfkthame updated this revision to Diff 209110.Dec 17 2019, 3:04 PM

Moved the custom embolden function to the WR code

lsalzman accepted this revision.Dec 17 2019, 3:21 PM
jfkthame updated this revision to Diff 209133.Dec 17 2019, 3:51 PM

Minor cleanups