Bug 35581 - [OpenVG] Add support for drawing text to PainterOpenVG
Summary: [OpenVG] Add support for drawing text to PainterOpenVG
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 33987
  Show dependency treegraph
 
Reported: 2010-03-02 08:18 PST by Jakob Petsovits
Modified: 2010-03-12 11:45 PST (History)
1 user (show)

See Also:


Attachments
Patch (5.88 KB, patch)
2010-03-02 08:20 PST, Jakob Petsovits
krit: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jakob Petsovits 2010-03-02 08:18:25 PST
Make PainterOpenVG draw text, given a VGFont. This does not include any font management, as the OpenVG graphics backend has no idea where to get its VGFonts from (that's the task of the overall platform, rather than the graphics backend). Includes a bit of code that aligns the given point to device pixels, as that makes fonts look vastly better (for zooms/transformations other than the identity matrix).
Comment 1 Jakob Petsovits 2010-03-02 08:20:43 PST
Created attachment 49806 [details]
Patch
Comment 2 Dirk Schulze 2010-03-09 11:48:50 PST
Comment on attachment 49806 [details]
Patch

A simple style issue:
 1034         p = FloatPoint(0, 0);

Please use just FloatPoint() here.

r=me with the fix above.
Comment 3 Jakob Petsovits 2010-03-12 11:45:30 PST
Committed r55923: <http://trac.webkit.org/changeset/55923>