Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3851)

Issue 5985052: Add Windows-compatible font metrics to SkPaint::FontMetrics. This is needed to

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by efidler
Modified:
12 years ago
CC:
skia-review_googlegroups.com, evan
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Add Windows-compatible font metrics to SkPaint::FontMetrics. This is needed to get Windows-compatible line spacing for fonts using VDMX table metrics in Chromium Linux and BlackBerry WebKit. BUG=webkit:83279

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -3 lines) Patch
M include/core/SkPaint.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/core/SkPaint.cpp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/ports/SkFontHost_FreeType.cpp View 1 5 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 14
tony
12 years, 1 month ago (2012-04-05 19:40:04 UTC) #1
epoger
Adding bungeman, who has familiarity with Windows font issues... https://codereview.appspot.com/5985052/diff/1/include/core/SkPaint.h File include/core/SkPaint.h (right): https://codereview.appspot.com/5985052/diff/1/include/core/SkPaint.h#newcode4 include/core/SkPaint.h:4: ...
12 years, 1 month ago (2012-04-05 19:48:01 UTC) #2
Stephen White
https://codereview.appspot.com/5985052/diff/1/include/core/SkPaint.h File include/core/SkPaint.h (right): https://codereview.appspot.com/5985052/diff/1/include/core/SkPaint.h#newcode4 include/core/SkPaint.h:4: * Copyright (C) 2012 Research In Motion Limited. All ...
12 years, 1 month ago (2012-04-05 19:52:40 UTC) #3
efidler
> On 2012/04/05 19:48:01, epoger wrote: > > I don't know what the implication of ...
12 years, 1 month ago (2012-04-05 20:26:18 UTC) #4
epoger
Please re-upload without the copyright changes then, and let's get bungeman or reed to take ...
12 years, 1 month ago (2012-04-05 20:29:08 UTC) #5
epoger
12 years, 1 month ago (2012-04-05 20:29:49 UTC) #6
bungeman
On 2012/04/05 19:40:04, tony wrote: I'm not sure if the reasoning on the WebKit bug ...
12 years, 1 month ago (2012-04-05 21:15:21 UTC) #7
efidler
Since we're doing the VDMX handling in WebKit, we explicitly need the Ascent/Descent/LineGap from the ...
12 years, 1 month ago (2012-04-05 22:07:43 UTC) #8
reed1
(sorry, late to the party) There are at least 3 sets of these values (unfortunately), ...
12 years ago (2012-04-09 16:22:48 UTC) #9
efidler
For this use case, I need: HEAD unitsPerEm, yMin, yMax HHEA yAscender, yDescender, yLineGap OS/2 ...
12 years ago (2012-04-09 17:14:30 UTC) #10
efidler
Further thoughts? We're going to be forked for both Skia and WebKit until we can ...
12 years ago (2012-04-17 16:08:43 UTC) #11
reed1
https://codereview.appspot.com/6050046 My suggestion is to use these APIs directly, once that CL lands. From those ...
12 years ago (2012-04-17 16:35:03 UTC) #12
efidler
I don't currently have code in WebKit to parse HEAD, HHEA and OS/2 table data. ...
12 years ago (2012-04-17 17:17:49 UTC) #13
bungeman
12 years ago (2012-04-17 17:51:15 UTC) #14
On 2012/04/17 17:17:49, efidler wrote:
> I don't currently have code in WebKit to parse HEAD, HHEA and OS/2 table data.
> Wouldn't it make sense for Skia to have that code?

Feel free to copy (with all appropriate attributions, of course) from Skia's
src/sfnt directory. This directory contains some header files with rather
detailed definitions of the tables in question. Skia currently is not exposing
these publicly since we don't want to have to support them if we don't have to,
but they're rather well researched, at least. Since we will be exposing the
table data getters, it may be possible to make the argument that these headers
should be exposed.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b