Closed Bug 898267 Opened 12 years ago Closed 12 years ago

Azure CoreGraphics backend needs to support font smoothing

Categories

(Core :: Graphics: Text, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: jtd, Assigned: jtd)

References

Details

Attachments

(1 file)

Cairo Quartz code has the ability to set the CG font smoothing parameter, via the antialias font option: http://mxr.mozilla.org/mozilla-central/source/gfx/cairo/cairo/src/cairo-quartz-font.c#704 The code in DrawTargetCG.cpp calls CGContextSetShouldAntialias but not CGContextSetShouldSmoothFonts. Not quite sure how the antialias parameter gets passed down but I'm guessing the code in gfxMacFont needs to explicitly set the mAntialiasOption within the logic here: http://mxr.mozilla.org/mozilla-central/source/gfx/thebes/gfxMacFont.cpp#84
Set the mAntialiasOption member as needed and call CGContextSetShouldSmoothFonts within DrawTargetCG.cpp when drawing glyphs.
Attachment #781486 - Flags: review?(jmuizelaar)
Attachment #781486 - Flags: review?(jmuizelaar) → review+
Target Milestone: --- → mozilla25
Assignee: nobody → jdaggett
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: