Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(23)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 41081: Sync with Chromium's fork

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 9 months ago by agl
Modified:
16 years, 8 months ago
Reviewers:
reed
Visibility:
Public.
Sync with Chromium's fork * Add the following font metrics fields: + fAvgCharWidth + fXMin + fXMax + fXHeight * Add \#if 0'ed includes for the Freetype headers for Xcode, scons and other tools which chase headers. * Correctly render 1bpp fonts (mostly Chinese fonts at small sizes)

Patch Set 1 #

Total comments: 6

Patch Set 2 : ... #

Total comments: 4

Patch Set 3 : ... #

Created: 16 years, 8 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -16 lines) Patch
M include/core/SkPaint.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/ports/SkFontHost_FreeType.cpp View 1 2 7 chunks +85 lines, -16 lines 0 comments Download
M src/ports/SkFontHost_ascender.cpp View 2 chunks +12 lines, -0 lines 0 comments Download
M src/ports/SkFontHost_mac.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
Total messages: 6
|
agl
16 years, 9 months ago (2009年04月15日 21:34:13 UTC) #1
Sign in to reply to this message.
reed
http://codereview.appspot.com/41081/diff/1/2 File include/core/SkPaint.h (right): http://codereview.appspot.com/41081/diff/1/2#newcode627 Line 627: SkScalar fXMin; //!< The minimum bounding box x ...
16 years, 8 months ago (2009年04月22日 14:09:59 UTC) #2
http://codereview.appspot.com/41081/diff/1/2
File include/core/SkPaint.h (right):
http://codereview.appspot.com/41081/diff/1/2#newcode627
Line 627: SkScalar fXMin; //!< The minimum bounding box x value for all
glyphs
I think these min/max values will be useful (assuming they're accurate). Should
we just store a rect, and say its the global bbox for the font, rather than just
the X values?
http://codereview.appspot.com/41081/diff/1/3
File src/ports/SkFontHost_FreeType.cpp (right):
http://codereview.appspot.com/41081/diff/1/3#newcode39
Line 39: #if 0
Will we leave this as #if 0 ?
http://codereview.appspot.com/41081/diff/1/3#newcode768
Line 768: SkFixed myy = fMatrix22.yy;
This happens to work of scalar==float, but the better approach is to call
SkIntToScalar(xmin) / upen. This will work for both fixed and float builds.
Sign in to reply to this message.
agl
http://codereview.appspot.com/41081/diff/1/2 File include/core/SkPaint.h (right): http://codereview.appspot.com/41081/diff/1/2#newcode627 Line 627: SkScalar fXMin; //!< The minimum bounding box x ...
16 years, 8 months ago (2009年04月22日 18:19:11 UTC) #3
http://codereview.appspot.com/41081/diff/1/2
File include/core/SkPaint.h (right):
http://codereview.appspot.com/41081/diff/1/2#newcode627
Line 627: SkScalar fXMin; //!< The minimum bounding box x value for all
glyphs
On 2009年04月22日 14:09:59, reed wrote:
> I think these min/max values will be useful (assuming they're accurate).
Should
> we just store a rect, and say its the global bbox for the font, rather than
just
> the X values?
Can I get away with doing that afterwards? I'm afraid that I'm going to mess up
Steven's unforking if I do this now.
http://codereview.appspot.com/41081/diff/1/3
File src/ports/SkFontHost_FreeType.cpp (right):
http://codereview.appspot.com/41081/diff/1/3#newcode39
Line 39: #if 0
On 2009年04月22日 14:09:59, reed wrote:
> Will we leave this as #if 0 ?
Yes. The compiler doesn't actually include these files, but build tools will see
the includes and not break. Xcode and scons need this at least.
http://codereview.appspot.com/41081/diff/1/3#newcode768
Line 768: SkFixed myy = fMatrix22.yy;
On 2009年04月22日 14:09:59, reed wrote:
> This happens to work of scalar==float, but the better approach is to call
> SkIntToScalar(xmin) / upen. This will work for both fixed and float builds.
Done.
Sign in to reply to this message.
reed
I'm fine to keep the paint.h as is. We can explore the rect -vs- max/min ...
16 years, 8 months ago (2009年04月22日 20:29:03 UTC) #4
I'm fine to keep the paint.h as is. We can explore the rect -vs- max/min later
on
http://codereview.appspot.com/41081/diff/1003/2003
File src/ports/SkFontHost_FreeType.cpp (right):
http://codereview.appspot.com/41081/diff/1003/2003#newcode789
Line 789: if (os2 && os2->sxHeight) {
another float -vs- fixed fix
x_height = SkFixedToScalar(SkMulDiv(fScaleX, os2->sxHeight, upem));
http://codereview.appspot.com/41081/diff/1003/2003#newcode797
Line 797: FT_Outline_Get_CBox(&fFace->glyph->outline, &bbox);
x_height = SkIntToScalar(bbox.yMax) / 64;
Sign in to reply to this message.
agl
http://codereview.appspot.com/41081/diff/1003/2003 File src/ports/SkFontHost_FreeType.cpp (right): http://codereview.appspot.com/41081/diff/1003/2003#newcode789 Line 789: if (os2 && os2->sxHeight) { On 2009年04月22日 20:29:03, ...
16 years, 8 months ago (2009年04月22日 21:32:55 UTC) #5
http://codereview.appspot.com/41081/diff/1003/2003
File src/ports/SkFontHost_FreeType.cpp (right):
http://codereview.appspot.com/41081/diff/1003/2003#newcode789
Line 789: if (os2 && os2->sxHeight) {
On 2009年04月22日 20:29:03, reed wrote:
> another float -vs- fixed fix
> 
> x_height = SkFixedToScalar(SkMulDiv(fScaleX, os2->sxHeight, upem));
Done.
http://codereview.appspot.com/41081/diff/1003/2003#newcode797
Line 797: FT_Outline_Get_CBox(&fFace->glyph->outline, &bbox);
On 2009年04月22日 20:29:03, reed wrote:
> x_height = SkIntToScalar(bbox.yMax) / 64;
Done.
Sign in to reply to this message.
reed
LGTM
16 years, 8 months ago (2009年04月22日 21:36:51 UTC) #6
LGTM
Sign in to reply to this message.
|
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /