Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Issue 196071: Embed fonts information into resulting PDF file for printing. (Closed)

Created:
11 years, 3 months ago by myhuang
Modified:
9 years, 7 months ago
Reviewers:
tony, agl, M-A Ruel
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Embed fonts information into resulting PDF file for printing. BUG=9847 TEST=printing on linux should have right font in pdf Patch contributed by Min-Yu Huang <minyu.huang@gmail.com>; Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=25974

Patch Set 1 #

Total comments: 18

Patch Set 2 : '' #

Total comments: 12

Patch Set 3 : '' #

Total comments: 8

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -39 lines) Patch
M printing/pdf_ps_metafile_linux.h View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M printing/pdf_ps_metafile_linux.cc View 1 2 3 4 14 chunks +160 lines, -22 lines 0 comments Download
M skia/ext/vector_platform_device_linux.cc View 1 2 3 3 chunks +42 lines, -16 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
myhuang
11 years, 3 months ago (2009-09-09 22:06:56 UTC) #1
tony
Do the unittests still pass? http://codereview.chromium.org/196071/diff/1/3 File printing/pdf_ps_metafile_linux.cc (right): http://codereview.chromium.org/196071/diff/1/3#newcode27 Line 27: FT_Library ft_library = ...
11 years, 3 months ago (2009-09-09 23:48:18 UTC) #2
myhuang
http://codereview.chromium.org/196071/diff/1/3 File printing/pdf_ps_metafile_linux.cc (right): http://codereview.chromium.org/196071/diff/1/3#newcode27 Line 27: FT_Library ft_library = NULL; // handle to FreeType ...
11 years, 3 months ago (2009-09-10 00:21:58 UTC) #3
M-A Ruel
http://codereview.chromium.org/196071/diff/4001/5002 File printing/pdf_ps_metafile_linux.cc (right): http://codereview.chromium.org/196071/diff/4001/5002#newcode37 Line 37: MapFontId2FontInfo g_font_cache; You can't make a global with ...
11 years, 3 months ago (2009-09-10 00:33:00 UTC) #4
myhuang
http://codereview.chromium.org/196071/diff/4001/5002 File printing/pdf_ps_metafile_linux.cc (right): http://codereview.chromium.org/196071/diff/4001/5002#newcode37 Line 37: MapFontId2FontInfo g_font_cache; On 2009/09/10 00:33:00, Marc-Antoine Ruel wrote: ...
11 years, 3 months ago (2009-09-10 18:18:39 UTC) #5
M-A Ruel
lgtm with small nits, will commit later. http://codereview.chromium.org/196071/diff/2005/3006 File printing/pdf_ps_metafile_linux.cc (right): http://codereview.chromium.org/196071/diff/2005/3006#newcode432 Line 432: g_font_cache->operator[](font_id) ...
11 years, 3 months ago (2009-09-10 18:23:03 UTC) #6
myhuang
11 years, 3 months ago (2009-09-10 20:42:33 UTC) #7
http://codereview.chromium.org/196071/diff/2005/3006
File printing/pdf_ps_metafile_linux.cc (right):

http://codereview.chromium.org/196071/diff/2005/3006#newcode432
Line 432: g_font_cache->operator[](font_id) = new_font_info;
On 2009/09/10 18:23:03, Marc-Antoine Ruel wrote:
> you can use the less awkward notation
> (*g_font_cache)[font_id] = new_font_info;

Done.

http://codereview.chromium.org/196071/diff/2005/3007
File skia/ext/vector_platform_device_linux.cc (right):

http://codereview.chromium.org/196071/diff/2005/3007#newcode262
Line 262: const uint16_t* glyphIDs = static_cast<const uint16_t*>(text);
On 2009/09/10 18:23:03, Marc-Antoine Ruel wrote:
> glyph_ids

Done.

http://codereview.chromium.org/196071/diff/2005/3007#newcode270
Line 270: uint16_t glyphID = glyphIDs[i];
On 2009/09/10 18:23:03, Marc-Antoine Ruel wrote:
> glyph_id

Done.

http://codereview.chromium.org/196071/diff/2005/3007#newcode292
Line 292: uint16_t glyphID = glyphIDs[i];
On 2009/09/10 18:23:03, Marc-Antoine Ruel wrote:
> same

Done.

Powered by Google App Engine
This is Rietveld 408576698