Index: Source/platform/fonts/FontDescription.h |
diff --git a/Source/platform/fonts/FontDescription.h b/Source/platform/fonts/FontDescription.h |
index 1386996e5fd7c2f3f4d94a146100485fcd818d8e..642c95b85ab5b342a4487a27bcb9f423603fc7a4 100644 |
--- a/Source/platform/fonts/FontDescription.h |
+++ b/Source/platform/fonts/FontDescription.h |
@@ -116,11 +116,7 @@ |
FontWeight lighterWeight() const; |
FontWeight bolderWeight() const; |
GenericFamilyType genericFamily() const { return static_cast<GenericFamilyType>(m_genericFamily); } |
-#if OS(MACOSX) |
- bool usePrinterFont() const { return false; } |
-#else |
bool usePrinterFont() const { return m_usePrinterFont; } |
-#endif |
// only use fixed default size when there is only one font family, and that family is "monospace" |
bool useFixedDefaultSize() const { return genericFamily() == MonospaceFamily && !family().next() && family().family() == FontFamilyNames::webkit_monospace; } |
Kerning kerning() const { return static_cast<Kerning>(m_kerning); } |
@@ -156,7 +152,11 @@ |
void setIsAbsoluteSize(bool s) { m_isAbsoluteSize = s; } |
void setWeight(FontWeight w) { m_weight = w; } |
void setGenericFamily(GenericFamilyType genericFamily) { m_genericFamily = genericFamily; } |
+#if OS(MACOSX) |
+ void setUsePrinterFont(bool) { } |
+#else |
void setUsePrinterFont(bool p) { m_usePrinterFont = p; } |
+#endif |
void setKerning(Kerning kerning) { m_kerning = kerning; } |
void setCommonLigaturesState(LigaturesState commonLigaturesState) { m_commonLigaturesState = commonLigaturesState; } |
void setDiscretionaryLigaturesState(LigaturesState discretionaryLigaturesState) { m_discretionaryLigaturesState = discretionaryLigaturesState; } |