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
(73)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 6501049: Normalize font BBox to make sure it's correct when rendering a PDF on the mac.

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 4 months ago by abodenha
Modified:
13 years, 4 months ago
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/src/
Visibility:
Public.
Normalize font BBox to make sure it's correct when rendering a PDF on the mac. BUG=crbug.com/124572

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 1
Created: 13 years, 4 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -2 lines) Patch
M ports/SkFontHost_mac_coretext.cpp View 1 1 chunk +5 lines, -2 lines 1 comment Download
Total messages: 7
|
abodenha
My first Skia change. Please let me know if I've done anything particularly stupid here.
13 years, 4 months ago (2012年08月28日 18:57:17 UTC) #1
My first Skia change. Please let me know if I've done anything particularly
stupid here.
Sign in to reply to this message.
caryclark1
https://codereview.appspot.com/6501049/diff/1/ports/SkFontHost_mac_coretext.cpp File ports/SkFontHost_mac_coretext.cpp (right): https://codereview.appspot.com/6501049/diff/1/ports/SkFontHost_mac_coretext.cpp#newcode1620 ports/SkFontHost_mac_coretext.cpp:1620: } Use SkTSwap<uint16_t>(info->fBBox.fTop, info->fBBox.fBottom); instead.
13 years, 4 months ago (2012年08月28日 19:00:36 UTC) #2
https://codereview.appspot.com/6501049/diff/1/ports/SkFontHost_mac_coretext.cpp
File ports/SkFontHost_mac_coretext.cpp (right):
https://codereview.appspot.com/6501049/diff/1/ports/SkFontHost_mac_coretext.c...
ports/SkFontHost_mac_coretext.cpp:1620: }
Use 
SkTSwap<uint16_t>(info->fBBox.fTop, info->fBBox.fBottom); 
instead.
Sign in to reply to this message.
Steve VanDeBogart
https://codereview.appspot.com/6501049/diff/1/ports/SkFontHost_mac_coretext.cpp File ports/SkFontHost_mac_coretext.cpp (right): https://codereview.appspot.com/6501049/diff/1/ports/SkFontHost_mac_coretext.cpp#newcode1611 ports/SkFontHost_mac_coretext.cpp:1611: CGRect bbox = CTFontGetBoundingBox(ctFont); You may want to look ...
13 years, 4 months ago (2012年08月28日 19:06:01 UTC) #3
https://codereview.appspot.com/6501049/diff/1/ports/SkFontHost_mac_coretext.cpp
File ports/SkFontHost_mac_coretext.cpp (right):
https://codereview.appspot.com/6501049/diff/1/ports/SkFontHost_mac_coretext.c...
ports/SkFontHost_mac_coretext.cpp:1611: CGRect bbox =
CTFontGetBoundingBox(ctFont);
You may want to look at the other use of CTFontGetBoundingBox in this file. It
uses some macros like CGRectGetMaxY_inline to compute the bounds. You might be
able to use directly in the call to the SkIRect constructor.
Sign in to reply to this message.
abodenha
Please take another look. https://codereview.appspot.com/6501049/diff/1/ports/SkFontHost_mac_coretext.cpp File ports/SkFontHost_mac_coretext.cpp (right): https://codereview.appspot.com/6501049/diff/1/ports/SkFontHost_mac_coretext.cpp#newcode1611 ports/SkFontHost_mac_coretext.cpp:1611: CGRect bbox = CTFontGetBoundingBox(ctFont); Good ...
13 years, 4 months ago (2012年08月28日 19:24:55 UTC) #4
Please take another look.
https://codereview.appspot.com/6501049/diff/1/ports/SkFontHost_mac_coretext.cpp
File ports/SkFontHost_mac_coretext.cpp (right):
https://codereview.appspot.com/6501049/diff/1/ports/SkFontHost_mac_coretext.c...
ports/SkFontHost_mac_coretext.cpp:1611: CGRect bbox =
CTFontGetBoundingBox(ctFont);
Good call. That's much cleaner than what I had here.
On 2012年08月28日 19:06:01, Steve VanDeBogart wrote:
> You may want to look at the other use of CTFontGetBoundingBox in this file. 
It
> uses some macros like CGRectGetMaxY_inline to compute the bounds. You might
be
> able to use directly in the call to the SkIRect constructor.
https://codereview.appspot.com/6501049/diff/1/ports/SkFontHost_mac_coretext.c...
ports/SkFontHost_mac_coretext.cpp:1620: }
Cool. I figured there was a swap utility somewhere. Thanks.
On 2012年08月28日 19:00:36, caryclark1 wrote:
> Use 
> 
> SkTSwap<uint16_t>(info->fBBox.fTop, info->fBBox.fBottom); 
> 
> instead.
Sign in to reply to this message.
Steve VanDeBogart
I assume you tested this change and it gave you the values you expected? LGTM ...
13 years, 4 months ago (2012年08月28日 19:40:01 UTC) #5
I assume you tested this change and it gave you the values you expected?
LGTM
I'll land the fix.
https://codereview.appspot.com/6501049/diff/4001/ports/SkFontHost_mac_coretex...
File ports/SkFontHost_mac_coretext.cpp (right):
https://codereview.appspot.com/6501049/diff/4001/ports/SkFontHost_mac_coretex...
ports/SkFontHost_mac_coretext.cpp:1613: CGToScalar( CGRectGetMinX_inline(bbox)),
 // Left
nit: extra space.
Sign in to reply to this message.
Steve VanDeBogart
Landed as r5325 FYI: your patch was one level to high, path should have been ...
13 years, 4 months ago (2012年08月28日 19:48:53 UTC) #6
Landed as r5325
FYI: your patch was one level to high, path should have been
src/ports/SkFontHost_mac_coretext.cpp
Sign in to reply to this message.
abodenha
On Tue, Aug 28, 2012 at 12:40 PM, <vandebo@chromium.org> wrote: > I assume you tested ...
13 years, 4 months ago (2012年08月28日 19:54:08 UTC) #7
On Tue, Aug 28, 2012 at 12:40 PM, <vandebo@chromium.org> wrote:
> I assume you tested this change and it gave you the values you expected?
>
> Yep.
> LGTM
>
> I'll land the fix.
>
>
> https://codereview.appspot.**com/6501049/diff/4001/ports/**
>
SkFontHost_mac_coretext.cpp<https://codereview.appspot.com/6501049/diff/4001/ports/SkFontHost_mac_coretext.cpp>
> File ports/SkFontHost_mac_coretext.**cpp (right):
>
> https://codereview.appspot.**com/6501049/diff/4001/ports/**
>
SkFontHost_mac_coretext.cpp#**newcode1613<https://codereview.appspot.com/6501049/diff/4001/ports/SkFontHost_mac_coretext.cpp#newcode1613>
> ports/SkFontHost_mac_coretext.**cpp:1613: CGToScalar(
> CGRectGetMinX_inline(bbox)), // Left
> nit: extra space.
>
>
https://codereview.appspot.**com/6501049/<https://codereview.appspot.com/6501...
>
-- 
Albert Bodenhamer | Software Engineer | abodenha@chromium.<abodenha@google.com>
org
Sign in to reply to this message.
|
Powered by Google App Engine
This is Rietveld f62528b

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