diff options
author | Nicolás Peña <npm@chromium.org> | 2017-09-28 13:29:05 +0900 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-09-28 16:19:00 +0000 |
commit | 79eab23d8f83aec7088c59f8bcee65994c6662a0 (patch) | |
tree | 50c96fdad3fc09f993f5217e7f34369ae322f966 /fpdfsdk/fpdfedit_embeddertest.cpp | |
parent | 0e60b9ef2b79de52ef62101abae2af7292e879b7 (diff) | |
download | pdfium-79eab23d8f83aec7088c59f8bcee65994c6662a0.tar.xz |
Add Length1 in TrueType font streams
Bug: pdfium:892
Change-Id: Ica0377515589a96a8919cb8ed2a3da1d1c9f6191
Reviewed-on: https://pdfium-review.googlesource.com/15030
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfedit_embeddertest.cpp')
-rw-r--r-- | fpdfsdk/fpdfedit_embeddertest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fpdfsdk/fpdfedit_embeddertest.cpp b/fpdfsdk/fpdfedit_embeddertest.cpp index 9f43054b4c..1fb0cde7f9 100644 --- a/fpdfsdk/fpdfedit_embeddertest.cpp +++ b/fpdfsdk/fpdfedit_embeddertest.cpp @@ -82,6 +82,10 @@ class FPDFEditEmbeddertest : public EmbedderTest { // Check that the font stream is the one that was provided CPDF_Stream* font_stream = font_desc->GetStreamFor(present); ASSERT_EQ(size, font_stream->GetRawSize()); + if (font_type == FPDF_FONT_TRUETYPE) { + ASSERT_EQ(static_cast<int>(size), + font_stream->GetDict()->GetIntegerFor("Length1")); + } uint8_t* stream_data = font_stream->GetRawData(); for (size_t j = 0; j < size; j++) EXPECT_EQ(data[j], stream_data[j]) << " at byte " << j; |