skia2/src/pdf
halcanary 1748432796 SkPDF: Remove some unused glyphs from fallback fonts
This makes the /Widths and the /Differences arrays smaller.

Example diff in output PDF (lines are wrapped for easy viewing):

 <</Type /Font
 /Subtype /Type3
 /FontMatrix [.00100000005 0 0 -.00100000005 0 0]
 /FirstChar 0
-/LastChar 255
+/LastChar 118
 /FontBBox [23 228 669 -694]
 /CIDToGIDMap /Identity
 /ToUnicode 8 0 R
-/Widths [280 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-525 0 0 0 525 0 0 0 0 525 525 525 525 0 0 0 0 0 0 525 0 0 0 0 0 0 0 0
-0 0 0 0 0 525 0 525 0 0 0 525 0 0 0 0 0 0 0 0 0 0 0 525 0 0 0 0 0 0
-525 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 525 0 0 0 0 0 0 0 525
-0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
+/Widths [280 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+525 0 0 0 525 0 0 0 0 525 525 525 525 0 0 0 0 0 0 525 0 0 0 0 0 0 0 0
+0 0 0 0 0 525 0 525 0 0 0 525 0 0 0 0 0 0 0 0 0 0 0 525 0 0 0 0 0 0
+525 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 525 0 0 0 0 0 0 0
+525]
 /Encoding <</Type /Encoding
-/Differences [0 /g0 /g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g0 /g0 /g0]>>
+/Differences [0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0
+/g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g1D
+/g0 /g0 /g0 /g21 /g0 /g0 /g0 /g0 /g26 /g27 /g28 /g29 /g0 /g0 /g0 /g0
+/g0 /g0 /g30 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g3E
+/g0 /g40 /g0 /g0 /g0 /g44 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0
+/g50 /g0 /g0 /g0 /g0 /g0 /g0 /g57 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0
+/g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g0 /g6E /g0 /g0 /g0
+/g0 /g0 /g0 /g0 /g76]>>
 /CharProcs <</g0 9 0 R
 /g1D 10 0 R
 /g21 11 0 R
.......

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2287393002

Review-Url: https://codereview.chromium.org/2287393002
2016-08-29 09:47:48 -07:00
..
SkBitmapKey.h SkPDF: properly dedup bitmaps in shaders 2016-04-01 11:51:00 -07:00
SkDeflate.cpp SkPDF: Stop #include PREPROCESSOR_DEFINE pattern 2016-08-25 09:07:02 -07:00
SkDeflate.h Remove unnecessary includes in src/pdf/ 2016-06-29 05:12:32 -07:00
SkDocument_PDF_None.cpp SkPDF/None: fix compilation 2016-04-27 10:57:52 -07:00
SkJpegInfo.cpp Style bikeshed - remove extraneous whitespace 2016-03-29 09:03:53 -07:00
SkJpegInfo.h Style bikeshed - remove extraneous whitespace 2016-03-29 09:03:53 -07:00
SkPDFBitmap.cpp SkPDF: in-place font subsetting 2016-08-18 14:22:52 -07:00
SkPDFBitmap.h Remove unnecessary includes in src/pdf/ 2016-06-29 05:12:32 -07:00
SkPDFCanon.cpp SkPDF: cache metrics once. 2016-08-18 09:52:48 -07:00
SkPDFCanon.h SkPDF: cache metrics once. 2016-08-18 09:52:48 -07:00
SkPDFCanvas.cpp Add onDrawBitmapLattice(), avoid unnecessary bitmap->image copy 2016-08-16 09:31:08 -07:00
SkPDFCanvas.h Add onDrawBitmapLattice(), avoid unnecessary bitmap->image copy 2016-08-16 09:31:08 -07:00
SkPDFConvertType1FontStream.cpp SkPDF: SkPDFFont organization changes. 2016-08-09 13:04:34 -07:00
SkPDFConvertType1FontStream.h SkPDF: SkPDFFont organization changes. 2016-08-09 13:04:34 -07:00
SkPDFDevice.cpp SkPDF: Glyph validation change 2016-08-26 13:17:44 -07:00
SkPDFDevice.h SkPDF: Glyph validation change 2016-08-26 13:17:44 -07:00
SkPDFDocument.cpp SkPDF: in-place font subsetting 2016-08-18 14:22:52 -07:00
SkPDFDocument.h SkPDF: in-place font subsetting 2016-08-18 14:22:52 -07:00
SkPDFFont.cpp SkPDF: Remove some unused glyphs from fallback fonts 2016-08-29 09:47:48 -07:00
SkPDFFont.h SkPDF: Glyph validation change 2016-08-26 13:17:44 -07:00
SkPDFFormXObject.cpp SkPDF: PDFStream has-a not is-a PDFDict 2016-07-29 10:13:18 -07:00
SkPDFFormXObject.h SkPDF: PDFStream has-a not is-a PDFDict 2016-07-29 10:13:18 -07:00
SkPDFGraphicState.cpp SkPDF: in-place font subsetting 2016-08-18 14:22:52 -07:00
SkPDFGraphicState.h SkPDF: in-place font subsetting 2016-08-18 14:22:52 -07:00
SkPDFMakeCIDGlyphWidthsArray.cpp src/utils/SkBitSet: simplify 2016-08-19 16:23:23 -07:00
SkPDFMakeCIDGlyphWidthsArray.h SkPDF: pull out SkPDFMakeCIDGlyphWidthsArray.cpp 2016-08-17 07:57:27 -07:00
SkPDFMakeToUnicodeCmap.cpp SkPDF: in-place font subsetting 2016-08-18 14:22:52 -07:00
SkPDFMakeToUnicodeCmap.h SkPDF: in-place font subsetting 2016-08-18 14:22:52 -07:00
SkPDFMetadata.cpp SkPDF: in-place font subsetting 2016-08-18 14:22:52 -07:00
SkPDFMetadata.h Remove unnecessary includes in src/pdf/ 2016-06-29 05:12:32 -07:00
SkPDFResourceDict.cpp Remove unnecessary includes in src/pdf/ 2016-06-29 05:12:32 -07:00
SkPDFResourceDict.h Remove unnecessary includes in src/pdf/ 2016-06-29 05:12:32 -07:00
SkPDFShader.cpp SkPDF: bikeshed: use auto less 2016-08-09 20:04:01 -07:00
SkPDFShader.h SkPDF: PDFShader code modernized. 2016-08-03 11:16:57 -07:00
SkPDFTypes.cpp SkPDF: in-place font subsetting 2016-08-18 14:22:52 -07:00
SkPDFTypes.h SkPDF: in-place font subsetting 2016-08-18 14:22:52 -07:00
SkPDFUtils.cpp SkPDF: re-work SkPDFUtils::FloatToDecimal 2016-07-25 13:59:30 -07:00
SkPDFUtils.h SkPdf: smaller color serialization 2016-07-15 13:41:28 -07:00
SkScopeExit.h SkPDF: Glyph validation change 2016-08-26 13:17:44 -07:00