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

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:
12 years, 3 months ago by abodenha
Modified:
12 years, 3 months ago
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/src/
Visibility:
Public.

Description

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
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

Messages

Total messages: 7
abodenha
My first Skia change. Please let me know if I've done anything particularly stupid here.
12 years, 3 months ago (2012-08-28 18:57:17 UTC) #1
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.
12 years, 3 months ago (2012-08-28 19:00:36 UTC) #2
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 ...
12 years, 3 months ago (2012-08-28 19:06:01 UTC) #3
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 ...
12 years, 3 months ago (2012-08-28 19:24:55 UTC) #4
Steve VanDeBogart
I assume you tested this change and it gave you the values you expected? LGTM ...
12 years, 3 months ago (2012-08-28 19:40:01 UTC) #5
Steve VanDeBogart
Landed as r5325 FYI: your patch was one level to high, path should have been ...
12 years, 3 months ago (2012-08-28 19:48:53 UTC) #6
abodenha
12 years, 3 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
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b