24 auto annot_dict = pdfium::MakeRetain<CPDF_Dictionary>();
26 annot_dict->SetNewFor<CPDF_String>(
"DA",
"0 0 0 rg /F1 12 Tf",
29 CPDF_BAFontMap font_map(&doc,
std::move(annot_dict),
"N");
32 EXPECT_EQ(font_map.GetPDFFontAlias(0),
"Helvetica_00");
36 EXPECT_TRUE(font->IsType1Font());
37 EXPECT_EQ(font->GetBaseFontName(),
"Helvetica");
42 auto root_dict = pdfium::MakeRetain<CPDF_Dictionary>();
43 auto acroform_dict = root_dict->SetNewFor<CPDF_Dictionary>(
"AcroForm");
44 auto annot_dr_dict = acroform_dict->SetNewFor<CPDF_Dictionary>(
"DR");
45 auto annot_font_dict = annot_dr_dict->SetNewFor<CPDF_Dictionary>(
"Font");
46 auto annot_font_f1_dict = annot_font_dict->SetNewFor<CPDF_Dictionary>(
"F1");
47 annot_font_f1_dict->SetNewFor<CPDF_Name>(
"Type",
"Font");
48 annot_font_f1_dict->SetNewFor<CPDF_Name>(
"Subtype",
"Type1");
49 annot_font_f1_dict->SetNewFor<CPDF_Name>(
"BaseFont",
"Times-Roman");
52 auto annot_dict = pdfium::MakeRetain<CPDF_Dictionary>();
54 annot_dict->SetNewFor<CPDF_String>(
"DA",
"0 0 0 rg /F1 12 Tf",
57 CPDF_BAFontMap font_map(&doc,
std::move(annot_dict),
"N");
61 EXPECT_TRUE(font->IsType1Font());
62 EXPECT_EQ(font->GetBaseFontName(),
"Times-Roman");