summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/fxge/cfx_fontmapper.cpp2
-rw-r--r--testing/resources/pixel/bug_820345_expected.pdf.0.pngbin758 -> 1649 bytes
-rw-r--r--testing/resources/pixel/bug_820345_expected_win.pdf.0.pngbin0 -> 1649 bytes
3 files changed, 2 insertions, 0 deletions
diff --git a/core/fxge/cfx_fontmapper.cpp b/core/fxge/cfx_fontmapper.cpp
index 87442b54e6..f44e7aab69 100644
--- a/core/fxge/cfx_fontmapper.cpp
+++ b/core/fxge/cfx_fontmapper.cpp
@@ -587,6 +587,8 @@ FXFT_Face CFX_FontMapper::FindSubstFont(const ByteString& name,
}
} else {
italic_angle = 0;
+ if (nStyle == FXFONT_NORMAL)
+ weight = FXFONT_FW_NORMAL;
}
if (!match.IsEmpty() || iBaseFont < kNumStandardFonts) {
diff --git a/testing/resources/pixel/bug_820345_expected.pdf.0.png b/testing/resources/pixel/bug_820345_expected.pdf.0.png
index c29515a937..e3c8e24d66 100644
--- a/testing/resources/pixel/bug_820345_expected.pdf.0.png
+++ b/testing/resources/pixel/bug_820345_expected.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_820345_expected_win.pdf.0.png b/testing/resources/pixel/bug_820345_expected_win.pdf.0.png
new file mode 100644
index 0000000000..78ebe89941
--- /dev/null
+++ b/testing/resources/pixel/bug_820345_expected_win.pdf.0.png
Binary files differ