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

Issue 4428082: Make text searchable in PDF (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 1 month ago by arthurhsu
Modified:
14 years, 1 month ago
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

Make text searchable in PDF Chromium bug 81308 BUG= TEST=

Patch Set 1 #

Total comments: 32

Patch Set 2 : Upload per code review #

Total comments: 56

Patch Set 3 : Upload per code review #

Patch Set 4 : Update per code review #

Total comments: 24

Patch Set 5 : Update per code review #

Patch Set 6 : Add Linux port #

Total comments: 15

Patch Set 7 : Update per code review #

Total comments: 2

Patch Set 8 : Update per code review #

Total comments: 22

Patch Set 9 : Update per code review #

Total comments: 32

Patch Set 10 : Update per code review #

Patch Set 11 : Upload per code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -4 lines) Patch
M include/core/SkAdvancedTypefaceMetrics.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M include/pdf/SkPDFFont.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/pdf/SkPDFFont.cpp View 1 2 3 4 5 6 7 8 9 10 6 chunks +117 lines, -4 lines 0 comments Download
M src/ports/SkFontHost_FreeType.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +56 lines, -0 lines 0 comments Download
M src/ports/SkFontHost_win.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +56 lines, -0 lines 0 comments Download

Messages

Total messages: 24
arthurhsu
14 years, 1 month ago (2011-05-03 17:07:30 UTC) #1
Steve VanDeBogart
http://codereview.appspot.com/4428082/diff/1/include/core/SkAdvancedTypefaceMetrics.h File include/core/SkAdvancedTypefaceMetrics.h (right): http://codereview.appspot.com/4428082/diff/1/include/core/SkAdvancedTypefaceMetrics.h#newcode117 include/core/SkAdvancedTypefaceMetrics.h:117: // The mappings from glyph to Unicode. Default is ...
14 years, 1 month ago (2011-05-03 17:49:08 UTC) #2
arthurhsu
http://codereview.appspot.com/4428082/diff/1/include/core/SkAdvancedTypefaceMetrics.h File include/core/SkAdvancedTypefaceMetrics.h (right): http://codereview.appspot.com/4428082/diff/1/include/core/SkAdvancedTypefaceMetrics.h#newcode117 include/core/SkAdvancedTypefaceMetrics.h:117: // The mappings from glyph to Unicode. Default is ...
14 years, 1 month ago (2011-05-03 20:09:02 UTC) #3
Steve VanDeBogart
http://codereview.appspot.com/4428082/diff/1/include/core/SkAdvancedTypefaceMetrics.h File include/core/SkAdvancedTypefaceMetrics.h (right): http://codereview.appspot.com/4428082/diff/1/include/core/SkAdvancedTypefaceMetrics.h#newcode117 include/core/SkAdvancedTypefaceMetrics.h:117: // The mappings from glyph to Unicode. Default is ...
14 years, 1 month ago (2011-05-04 20:31:53 UTC) #4
arthurhsu
http://codereview.appspot.com/4428082/diff/1/include/core/SkAdvancedTypefaceMetrics.h File include/core/SkAdvancedTypefaceMetrics.h (right): http://codereview.appspot.com/4428082/diff/1/include/core/SkAdvancedTypefaceMetrics.h#newcode117 include/core/SkAdvancedTypefaceMetrics.h:117: // The mappings from glyph to Unicode. Default is ...
14 years, 1 month ago (2011-05-04 23:50:58 UTC) #5
arthurhsu
Updated wrong coding style usage
14 years, 1 month ago (2011-05-05 18:49:02 UTC) #6
Steve VanDeBogart
Most of the comments are just style nits. The questions that I still have about ...
14 years, 1 month ago (2011-05-05 21:37:31 UTC) #7
arthurhsu
The code is tested against both TTF and Type 3 (converted Type 1) on Windows. ...
14 years, 1 month ago (2011-05-05 22:23:37 UTC) #8
Steve VanDeBogart
Chris, can you give this a once over when you get a chance?
14 years, 1 month ago (2011-05-05 22:30:44 UTC) #9
Chris Guillory
On 2011/05/05 22:30:44, Steve VanDeBogart wrote: > Chris, can you give this a once over ...
14 years, 1 month ago (2011-05-05 22:31:34 UTC) #10
arthurhsu
Sorry, Linux port is much easier than I originally expected, therefore I add it to ...
14 years, 1 month ago (2011-05-06 02:15:27 UTC) #11
Steve VanDeBogart
Comments on Linux implementation. http://codereview.appspot.com/4428082/diff/23001/src/ports/SkFontHost_FreeType.cpp File src/ports/SkFontHost_FreeType.cpp (right): http://codereview.appspot.com/4428082/diff/23001/src/ports/SkFontHost_FreeType.cpp#newcode513 src/ports/SkFontHost_FreeType.cpp:513: info->fType == SkAdvancedTypefaceMetrics::kTrueType_Font && Should ...
14 years, 1 month ago (2011-05-06 16:52:02 UTC) #12
reed1
global comment (not meant to halt this CL) getAdvancedType...() is probably large and complex enough ...
14 years, 1 month ago (2011-05-06 17:25:13 UTC) #13
arthurhsu
http://codereview.appspot.com/4428082/diff/23001/src/ports/SkFontHost_FreeType.cpp File src/ports/SkFontHost_FreeType.cpp (left): http://codereview.appspot.com/4428082/diff/23001/src/ports/SkFontHost_FreeType.cpp#oldcode511 src/ports/SkFontHost_FreeType.cpp:511: On 2011/05/06 17:25:14, reed1 wrote: > This large block ...
14 years, 1 month ago (2011-05-06 17:45:31 UTC) #14
Steve VanDeBogart
http://codereview.appspot.com/4428082/diff/23001/src/ports/SkFontHost_FreeType.cpp File src/ports/SkFontHost_FreeType.cpp (right): http://codereview.appspot.com/4428082/diff/23001/src/ports/SkFontHost_FreeType.cpp#newcode546 src/ports/SkFontHost_FreeType.cpp:546: // Keep walking if the current charmap is not ...
14 years, 1 month ago (2011-05-06 18:25:37 UTC) #15
arthurhsu
http://codereview.appspot.com/4428082/diff/23001/src/ports/SkFontHost_FreeType.cpp File src/ports/SkFontHost_FreeType.cpp (right): http://codereview.appspot.com/4428082/diff/23001/src/ports/SkFontHost_FreeType.cpp#newcode564 src/ports/SkFontHost_FreeType.cpp:564: SkUnichar charCode = FT_Get_First_Char(face, &glyphIndex); On 2011/05/06 18:25:37, Steve ...
14 years, 1 month ago (2011-05-06 18:57:30 UTC) #16
Chris Guillory
Looking good. http://codereview.appspot.com/4428082/diff/4001/include/core/SkAdvancedTypefaceMetrics.h File include/core/SkAdvancedTypefaceMetrics.h (right): http://codereview.appspot.com/4428082/diff/4001/include/core/SkAdvancedTypefaceMetrics.h#newcode118 include/core/SkAdvancedTypefaceMetrics.h:118: // The mappings from glyph to Unicode. ...
14 years, 1 month ago (2011-05-06 22:21:45 UTC) #17
arthurhsu
http://codereview.appspot.com/4428082/diff/4001/include/core/SkAdvancedTypefaceMetrics.h File include/core/SkAdvancedTypefaceMetrics.h (right): http://codereview.appspot.com/4428082/diff/4001/include/core/SkAdvancedTypefaceMetrics.h#newcode118 include/core/SkAdvancedTypefaceMetrics.h:118: // The mappings from glyph to Unicode. Default is ...
14 years, 1 month ago (2011-05-07 00:25:33 UTC) #18
Chris Guillory
LGTM with Nits. http://codereview.appspot.com/4428082/diff/26002/src/ports/SkFontHost_win.cpp File src/ports/SkFontHost_win.cpp (right): http://codereview.appspot.com/4428082/diff/26002/src/ports/SkFontHost_win.cpp#newcode207 src/ports/SkFontHost_win.cpp:207: if (glyphSetBufferSize) { Nit: Can change ...
14 years, 1 month ago (2011-05-07 00:41:50 UTC) #19
Chris Guillory
In Skia convention you can remove the Test= and Bug= in the description entirely when ...
14 years, 1 month ago (2011-05-07 00:44:14 UTC) #20
arthurhsu
http://codereview.appspot.com/4428082/diff/26002/src/ports/SkFontHost_win.cpp File src/ports/SkFontHost_win.cpp (right): http://codereview.appspot.com/4428082/diff/26002/src/ports/SkFontHost_win.cpp#newcode207 src/ports/SkFontHost_win.cpp:207: if (glyphSetBufferSize) { On 2011/05/07 00:41:50, Chris Guillory wrote: ...
14 years, 1 month ago (2011-05-07 01:01:05 UTC) #21
Steve VanDeBogart
http://codereview.appspot.com/4428082/diff/26002/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): http://codereview.appspot.com/4428082/diff/26002/src/pdf/SkPDFFont.cpp#newcode618 src/pdf/SkPDFFont.cpp:618: SkRefPtr<SkMemoryStream> mapObj = new SkMemoryStream(); nit: mapObj -> cmapStream ...
14 years, 1 month ago (2011-05-07 01:04:40 UTC) #22
arthurhsu
http://codereview.appspot.com/4428082/diff/26002/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): http://codereview.appspot.com/4428082/diff/26002/src/pdf/SkPDFFont.cpp#newcode618 src/pdf/SkPDFFont.cpp:618: SkRefPtr<SkMemoryStream> mapObj = new SkMemoryStream(); On 2011/05/07 01:04:40, Steve ...
14 years, 1 month ago (2011-05-09 17:45:56 UTC) #23
Steve VanDeBogart
14 years, 1 month ago (2011-05-09 17:58:02 UTC) #24
This looks good.  I'll pull down the patch and push it into the tree on your
behalf.

http://codereview.appspot.com/4428082/diff/26002/src/ports/SkFontHost_FreeTyp...
File src/ports/SkFontHost_FreeType.cpp (right):

http://codereview.appspot.com/4428082/diff/26002/src/ports/SkFontHost_FreeTyp...
src/ports/SkFontHost_FreeType.cpp:153: if (charCode && glyphIndex &&
On 2011/05/09 17:45:56, arthurhsu wrote:
> On 2011/05/07 01:04:40, Steve VanDeBogart wrote:
> > it's not possible for glyphIndex to be zero inside the loop => no reason to
> > check it.
> 
> When FT_Get_Next_Char() is not able to get any, it will set glyphIndex to
zero,
> and that's the loop's stop condition.

Right, so inside the loop, it is trivially true.
Sign in to reply to this message.

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