Index: Source/platform/fonts/FontDescription.h |
diff --git a/Source/platform/fonts/FontDescription.h b/Source/platform/fonts/FontDescription.h |
index a453fe245580a4d1edbd1264429b4fdc1e09a726..2bb25d1b79d49d82f75d64f820bdd45e88e2d0b7 100644 |
--- a/Source/platform/fonts/FontDescription.h |
+++ b/Source/platform/fonts/FontDescription.h |
@@ -115,7 +115,19 @@ public: |
float value; |
}; |
+ struct FamilyDescription { |
+ FamilyDescription(GenericFamilyType genericFamily) : genericFamily(genericFamily) { } |
+ FamilyDescription(GenericFamilyType genericFamily, const FontFamily& family) |
+ : genericFamily(genericFamily) |
+ , family(family) |
+ { |
+ } |
+ GenericFamilyType genericFamily; |
+ FontFamily family; |
+ }; |
+ |
const FontFamily& family() const { return m_familyList; } |
+ FamilyDescription familyDescription() const { return FamilyDescription(genericFamily(), family()); } |
FontFamily& firstFamily() { return m_familyList; } |
Size size() const { return Size(m_keywordSize, m_specifiedSize, m_isAbsoluteSize); } |
float specifiedSize() const { return m_specifiedSize; } |