| Code-Review | +1 |
// font."font, since `text` only contains a subset of the characters in the test font."
Carry over pre-existing line 340, which got lost.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
"font, since `text` only contains a subset of the characters in the test font."
Carry over pre-existing line 340, which got lost.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
1 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: fpdfsdk/fpdf_save_embeddertest.cpp
Insertions: 1, Deletions: 1.
@@ -391,7 +391,7 @@
CompareBitmapWithExpectationSuffix(bitmap.get(), kSaveNewTextFilename);
// Verify the file size increase is smaller when subsetting the new text's
- // font.
+ // font, since text only contains a subset of the characters in the test font.
EXPECT_TRUE(FPDF_SaveAsCopy(document(), this, FPDF_SUBSET_NEW_FONTS));
EXPECT_THAT(GetString(), StartsWith("%PDF-1.7\r\n"));
// TODO(crbug.com/476127152): File size increase should be smaller.
```
Refactor FPDFSaveWithFontSubsetEmbedderTest helper methods
Refactor FPDFSaveWithFontSubsetEmbedderTest::LoadTestFont() to make the
caller pass the font file path. This will allow callers to choose any
font file they need, rather than the same hardcoded font file.
Refactor FPDFSaveWithFontSubsetEmbedderTest::InsertNewTextObject() by
making the caller pass in the font, text, and position of text. Then,
callers can use various fonts and texts, and choose different positions
so text does not overlap in the rendering.
This refactoring is needed for new tests added in
https://pdfium-review.googlesource.com/c/pdfium/+/141854.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |