From 10e1f05a9e644cd954792bcd40ef787551cbd209 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 28 Sep 2017 15:59:42 -0400 Subject: Cleanup font defines Use methods to match font information; cleanup some font code. Change-Id: Ib99c1e466e56723cb5d264d49e1caf9bbbc0daed Reviewed-on: https://pdfium-review.googlesource.com/15072 Reviewed-by: Ryan Harrison Commit-Queue: dsinclair --- core/fxge/fx_ge_linux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/fxge/fx_ge_linux.cpp') diff --git a/core/fxge/fx_ge_linux.cpp b/core/fxge/fx_ge_linux.cpp index 302470b386..c9d1dd128b 100644 --- a/core/fxge/fx_ge_linux.cpp +++ b/core/fxge/fx_ge_linux.cpp @@ -59,7 +59,7 @@ size_t GetJapanesePreference(const char* facearr, } return 3; } - if (!(pitch_family & FXFONT_FF_ROMAN) && weight > 400) + if (!FontFamilyIsRoman(pitch_family) && weight > 400) return 0; return 2; -- cgit v1.2.3