Fixed an issue where the installed ComicSansMs font is substituted
During font mapping, in CFX_FolderFontInfo::FindFont(),
the 'Courier New' font is selected if present, in case of Ansi
encoding and Fixed pitch family.
In the Pdf attached to the bug, the `ComicSansMS` font is substituted
by 'Courier New' in the above check, because it has:
- flags value=41, first bit is set == FixedPitch
- WinAisiEncoding,
Since the 'Courier New' check seems like a fallback, I moved it after
inspecting the list of loaded fonts.
Bug: pdfium:1956
Change-Id: Ia3dde2ae932672b8ad22c0e5161c880b4005d547
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/102330
Reviewed-by: Nigi <nigi@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/AUTHORS b/AUTHORS
index b7e8252..a4c3f99 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -11,6 +11,7 @@
# Please keep the list sorted.
# BEGIN individuals section.
+Abdelkarim Sellamna <abdelkarim.se@gmail.com>
Aleksei Skotnikov <fineaskotnikov@gmail.com>
Antonio Gomes <tonikitoo@igalia.com>
Chery Cherian <cherycherian@gmail.com>