26 annot_dict->SetNewFor<CPDF_String>(
"DA",
"0 0 0 rg /F1 12 Tf");
28 CPDF_BAFontMap font_map(&doc,
std::move(annot_dict),
"N");
31 EXPECT_EQ(font_map.GetPDFFontAlias(0),
"Helvetica_00");
35 EXPECT_TRUE(font->IsType1Font());
36 EXPECT_EQ(font->GetBaseFontName(),
"Helvetica");
44 auto annot_font_dict = annot_dr_dict->SetNewFor<
CPDF_Dictionary>(
"Font");
45 auto annot_font_f1_dict = annot_font_dict->SetNewFor<
CPDF_Dictionary>(
"F1");
46 annot_font_f1_dict->SetNewFor<CPDF_Name>(
"Type",
"Font");
47 annot_font_f1_dict->SetNewFor<CPDF_Name>(
"Subtype",
"Type1");
48 annot_font_f1_dict->SetNewFor<CPDF_Name>(
"BaseFont",
"Times-Roman");
53 annot_dict->SetNewFor<CPDF_String>(
"DA",
"0 0 0 rg /F1 12 Tf");
55 CPDF_BAFontMap font_map(&doc,
std::move(annot_dict),
"N");
59 EXPECT_TRUE(font->IsType1Font());
60 EXPECT_EQ(font->GetBaseFontName(),
"Times-Roman");