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

Issue 4174041: Provide windows font host implementation needed to support TrueType text in p... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 9 months ago by Chris Guillory
Modified:
13 years, 8 months ago
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Provide windows font host implementation needed to support TrueType text in pdf backend. - Move AdvanceMetric template functions into new file SkAdvancedTypefaceMetrics.cpp Committed as revision 789. http://code.google.com/p/skia/source/detail?r=789

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Patch Set 3 : Updates from comments. Moved template functions into new file #

Total comments: 23

Patch Set 4 : Some cleanup. Updated with comments from Steve. #

Total comments: 23

Patch Set 5 : Updated with more comments from Steve. #

Total comments: 12

Patch Set 6 : Updated with more comments from Steve. #

Total comments: 7

Patch Set 7 : Minor cleanup. Updated with nit comments from Steve. #

Total comments: 14

Patch Set 8 : Updated with comments from Mike. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+345 lines, -96 lines) Patch
M include/core/SkAdvancedTypefaceMetrics.h View 1 2 3 4 5 1 chunk +26 lines, -0 lines 0 comments Download
A src/core/SkAdvancedTypefaceMetrics.cpp View 1 2 3 4 5 6 1 chunk +158 lines, -0 lines 0 comments Download
M src/core/core_files.mk View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/ports/SkFontHost_FreeType.cpp View 1 2 3 4 5 6 7 5 chunks +12 lines, -92 lines 0 comments Download
M src/ports/SkFontHost_win.cpp View 1 2 3 4 5 6 7 4 chunks +147 lines, -4 lines 0 comments Download
M vs/SampleApp/SampleApp.vcxproj View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16
Chris Guillory
13 years, 9 months ago (2011-02-09 22:14:44 UTC) #1
reed1
http://codereview.appspot.com/4174041/diff/1/src/ports/SkFontHost_win.cpp File src/ports/SkFontHost_win.cpp (right): http://codereview.appspot.com/4174041/diff/1/src/ports/SkFontHost_win.cpp#newcode505 src/ports/SkFontHost_win.cpp:505: if (type == SkAdvancedTypefaceMetrics::AdvanceMetric<Data>::kRange) needs { } for the ...
13 years, 9 months ago (2011-02-09 22:27:33 UTC) #2
Chris Guillory
http://codereview.appspot.com/4174041/diff/1/src/ports/SkFontHost_win.cpp File src/ports/SkFontHost_win.cpp (right): http://codereview.appspot.com/4174041/diff/1/src/ports/SkFontHost_win.cpp#newcode505 src/ports/SkFontHost_win.cpp:505: if (type == SkAdvancedTypefaceMetrics::AdvanceMetric<Data>::kRange) On 2011/02/09 22:27:33, reed1 wrote: ...
13 years, 9 months ago (2011-02-10 02:13:57 UTC) #3
Chris Guillory
13 years, 9 months ago (2011-02-10 22:57:52 UTC) #4
Steve VanDeBogart
http://codereview.appspot.com/4174041/diff/3002/include/core/SkAdvancedTypefaceMetrics.h File include/core/SkAdvancedTypefaceMetrics.h (right): http://codereview.appspot.com/4174041/diff/3002/include/core/SkAdvancedTypefaceMetrics.h#newcode110 include/core/SkAdvancedTypefaceMetrics.h:110: template <typename Data> Maybe these should go in a ...
13 years, 9 months ago (2011-02-10 23:22:18 UTC) #5
Chris Guillory
http://codereview.appspot.com/4174041/diff/3002/include/core/SkAdvancedTypefaceMetrics.h File include/core/SkAdvancedTypefaceMetrics.h (right): http://codereview.appspot.com/4174041/diff/3002/include/core/SkAdvancedTypefaceMetrics.h#newcode110 include/core/SkAdvancedTypefaceMetrics.h:110: template <typename Data> On 2011/02/10 23:22:18, Steve VanDeBogart wrote: ...
13 years, 9 months ago (2011-02-11 01:27:10 UTC) #6
Steve VanDeBogart
http://codereview.appspot.com/4174041/diff/3002/src/ports/SkFontHost_win.cpp File src/ports/SkFontHost_win.cpp (right): http://codereview.appspot.com/4174041/diff/3002/src/ports/SkFontHost_win.cpp#newcode624 src/ports/SkFontHost_win.cpp:624: void* buffer = sk_malloc_throw(bufferSize); On 2011/02/11 01:27:10, Chris Guillory ...
13 years, 9 months ago (2011-02-11 19:01:15 UTC) #7
Chris Guillory
http://codereview.appspot.com/4174041/diff/13001/include/core/SkAdvancedTypefaceMetrics.h File include/core/SkAdvancedTypefaceMetrics.h (right): http://codereview.appspot.com/4174041/diff/13001/include/core/SkAdvancedTypefaceMetrics.h#newcode130 include/core/SkAdvancedTypefaceMetrics.h:130: void* param, int num_glyphs, Data (*getAdvance)(void* param, int gId)); ...
13 years, 9 months ago (2011-02-11 21:27:25 UTC) #8
Steve VanDeBogart
http://codereview.appspot.com/4174041/diff/13001/src/core/SkAdvancedTypefaceMetrics.cpp File src/core/SkAdvancedTypefaceMetrics.cpp (right): http://codereview.appspot.com/4174041/diff/13001/src/core/SkAdvancedTypefaceMetrics.cpp#newcode115 src/core/SkAdvancedTypefaceMetrics.cpp:115: // int16_t. On 2011/02/11 21:27:25, Chris Guillory wrote: > ...
13 years, 9 months ago (2011-02-11 21:54:45 UTC) #9
Chris Guillory
On 2011/02/11 21:54:45, Steve VanDeBogart wrote: > http://codereview.appspot.com/4174041/diff/13001/src/core/SkAdvancedTypefaceMetrics.cpp > File src/core/SkAdvancedTypefaceMetrics.cpp (right): > > http://codereview.appspot.com/4174041/diff/13001/src/core/SkAdvancedTypefaceMetrics.cpp#newcode115 ...
13 years, 9 months ago (2011-02-11 23:03:40 UTC) #10
Steve VanDeBogart
Mike: what do you think of goto's, see below? LGTM with nits. http://codereview.appspot.com/4174041/diff/6003/src/core/SkAdvancedTypefaceMetrics.cpp File src/core/SkAdvancedTypefaceMetrics.cpp ...
13 years, 9 months ago (2011-02-12 00:21:45 UTC) #11
Chris Guillory
http://codereview.appspot.com/4174041/diff/6003/src/core/SkAdvancedTypefaceMetrics.cpp File src/core/SkAdvancedTypefaceMetrics.cpp (right): http://codereview.appspot.com/4174041/diff/6003/src/core/SkAdvancedTypefaceMetrics.cpp#newcode17 src/core/SkAdvancedTypefaceMetrics.cpp:17: #include "SkAdvancedTypefaceMetrics.h" On 2011/02/12 00:21:45, Steve VanDeBogart wrote: > ...
13 years, 9 months ago (2011-02-12 00:32:42 UTC) #12
Steve VanDeBogart
Mike: nevermind :-) http://codereview.appspot.com/4174041/diff/6003/src/ports/SkFontHost_win.cpp File src/ports/SkFontHost_win.cpp (right): http://codereview.appspot.com/4174041/diff/6003/src/ports/SkFontHost_win.cpp#newcode492 src/ports/SkFontHost_win.cpp:492: goto Error; On 2011/02/12 00:32:42, Chris ...
13 years, 9 months ago (2011-02-12 03:23:06 UTC) #13
reed1
http://codereview.appspot.com/4174041/diff/10003/src/ports/SkFontHost_FreeType.cpp File src/ports/SkFontHost_FreeType.cpp (left): http://codereview.appspot.com/4174041/diff/10003/src/ports/SkFontHost_FreeType.cpp#oldcode337 src/ports/SkFontHost_FreeType.cpp:337: return advance; SkASSERT(data); http://codereview.appspot.com/4174041/diff/10003/src/ports/SkFontHost_FreeType.cpp File src/ports/SkFontHost_FreeType.cpp (right): http://codereview.appspot.com/4174041/diff/10003/src/ports/SkFontHost_FreeType.cpp#newcode338 src/ports/SkFontHost_FreeType.cpp:338: ...
13 years, 9 months ago (2011-02-14 12:54:55 UTC) #14
Chris Guillory
http://codereview.appspot.com/4174041/diff/10003/src/ports/SkFontHost_FreeType.cpp File src/ports/SkFontHost_FreeType.cpp (left): http://codereview.appspot.com/4174041/diff/10003/src/ports/SkFontHost_FreeType.cpp#oldcode337 src/ports/SkFontHost_FreeType.cpp:337: return advance; On 2011/02/14 12:54:55, reed1 wrote: > SkASSERT(data); ...
13 years, 8 months ago (2011-02-14 19:04:03 UTC) #15
reed1
13 years, 8 months ago (2011-02-14 19:11:40 UTC) #16
LGTM
Sign in to reply to this message.

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