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

Issue 6554064: Vertical metrics for FreeType. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by bungeman
Modified:
12 years, 1 month ago
Reviewers:
behdad, DerekS, reed1
CC:
skia-review_googlegroups.com, raph, violets_google.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Vertical metrics for FreeType.

Patch Set 1 #

Total comments: 5

Patch Set 2 : Moar. #

Patch Set 3 : Always use FreeType's vertical metrics. #

Patch Set 4 : SkDot6ToScalar cleanup. #

Total comments: 6

Patch Set 5 : Something which can be checked in. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -116 lines) Patch
M gm/verttext.cpp View 1 2 3 4 2 chunks +20 lines, -3 lines 0 comments Download
M src/core/SkFDot6.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M src/ports/SkFontHost_FreeType.cpp View 1 2 3 4 7 chunks +60 lines, -73 lines 2 comments Download
M src/ports/SkFontHost_FreeType_common.cpp View 1 2 3 2 chunks +32 lines, -40 lines 0 comments Download

Messages

Total messages: 18
bungeman
First pass at using vertical metrics in FreeType when they are available.
12 years, 2 months ago (2012-09-21 19:37:28 UTC) #1
reed1
Looks good, though I vote for more comments and/or more descriptive names: Using freetype is ...
12 years, 2 months ago (2012-09-24 13:09:37 UTC) #2
behdad
LGTM as well.
12 years, 2 months ago (2012-09-25 01:54:22 UTC) #3
DerekS
https://codereview.appspot.com/6554064/diff/1/gm/verttext.cpp File gm/verttext.cpp (right): https://codereview.appspot.com/6554064/diff/1/gm/verttext.cpp#newcode29 gm/verttext.cpp:29: VertTextGM() : face(SkTypeface::CreateFromFile("MotoyaL04Mincho_3.ttf")) { you'll want to remove this ...
12 years, 2 months ago (2012-09-25 13:49:54 UTC) #4
bungeman
This removes our old code and just uses FreeType. Tested to work back to 2.4.2 ...
12 years, 2 months ago (2012-09-25 17:04:13 UTC) #5
reed1
lgtm modulo the rebaselining cost (if any) https://codereview.appspot.com/6554064/diff/13001/src/core/SkFDot6.h File src/core/SkFDot6.h (right): https://codereview.appspot.com/6554064/diff/13001/src/core/SkFDot6.h#newcode42 src/core/SkFDot6.h:42: #define SkScalarToFDot6(x) ...
12 years, 2 months ago (2012-09-25 17:32:31 UTC) #6
DerekS
https://codereview.appspot.com/6554064/diff/13001/gm/verttext.cpp File gm/verttext.cpp (right): https://codereview.appspot.com/6554064/diff/13001/gm/verttext.cpp#newcode16 gm/verttext.cpp:16: //static const char gText[] = "Hello"; I think we ...
12 years, 2 months ago (2012-09-25 17:33:35 UTC) #7
bungeman
Patch Set 4 is something which can be checked in and hopefully addresses all comments. ...
12 years, 2 months ago (2012-09-25 20:24:06 UTC) #8
DerekS
https://codereview.appspot.com/6554064/diff/16001/src/ports/SkFontHost_FreeType.cpp File src/ports/SkFontHost_FreeType.cpp (right): https://codereview.appspot.com/6554064/diff/16001/src/ports/SkFontHost_FreeType.cpp#newcode997 src/ports/SkFontHost_FreeType.cpp:997: vector.y = -fFace->glyph->metrics.vertBearingY - fFace->glyph->metrics.horiBearingY; Here are some comments ...
12 years, 1 month ago (2012-09-26 12:55:41 UTC) #9
bungeman
On 2012/09/26 12:55:41, DerekS wrote: > https://codereview.appspot.com/6554064/diff/16001/src/ports/SkFontHost_FreeType.cpp > File src/ports/SkFontHost_FreeType.cpp (right): > > https://codereview.appspot.com/6554064/diff/16001/src/ports/SkFontHost_FreeType.cpp#newcode997 > ...
12 years, 1 month ago (2012-09-26 14:11:17 UTC) #10
behdad
I think I'm in best position to answer these. See blow: On Wed, Sep 26, ...
12 years, 1 month ago (2012-09-26 15:39:52 UTC) #11
behdad
I think I'm in best position to answer these. See blow: On Wed, Sep 26, ...
12 years, 1 month ago (2012-09-26 15:40:08 UTC) #12
behdad
https://codereview.appspot.com/6554064/diff/16001/src/ports/SkFontHost_FreeType.cpp File src/ports/SkFontHost_FreeType.cpp (right): https://codereview.appspot.com/6554064/diff/16001/src/ports/SkFontHost_FreeType.cpp#newcode835 src/ports/SkFontHost_FreeType.cpp:835: loadFlags |= FT_LOAD_VERTICAL_LAYOUT; As per recent discussion I think ...
12 years, 1 month ago (2012-09-26 15:41:48 UTC) #13
bungeman
On 2012/09/26 15:41:48, behdad wrote: > https://codereview.appspot.com/6554064/diff/16001/src/ports/SkFontHost_FreeType.cpp > File src/ports/SkFontHost_FreeType.cpp (right): > > https://codereview.appspot.com/6554064/diff/16001/src/ports/SkFontHost_FreeType.cpp#newcode835 > ...
12 years, 1 month ago (2012-09-26 15:44:41 UTC) #14
reed1
Lets construct some tests that... - show that the VERTICAL flag in FT is needed? ...
12 years, 1 month ago (2012-09-26 15:44:48 UTC) #15
raph
Okay, I'm satisfied about the sign on vertBearingY - Behdad's explanation is good, and the ...
12 years, 1 month ago (2012-09-26 15:58:28 UTC) #16
behdad
On 2012/09/26 15:44:41, bungeman wrote: > > */ > > if (load_flags & FT_LOAD_VERTICAL_LAYOUT) { ...
12 years, 1 month ago (2012-09-26 16:05:10 UTC) #17
behdad
12 years, 1 month ago (2012-09-26 16:15:20 UTC) #18
I *think* what cairo does is to use LOAD_VERTICAL_LAYOUT to get the bearings /
metrics, but not use it when rendering the glyph or loading the path.  My guess
is that certain FreeType drivers ignore the LOAD_VERTICAL_LAYOUT.
Sign in to reply to this message.

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