void FontBuilder::setInitial(float effectiveZoom) { ASSERT(m_document.settings()); if (!m_document.settings()) return; setFamilyDescription(m_fontDescription, FontBuilder::initialFamilyDescription()); setSize(m_fontDescription, FontBuilder::initialSize()); }
void FontBuilder::createFontForDocument(FontSelector* fontSelector, ComputedStyle& documentStyle) { FontDescription fontDescription = FontDescription(); fontDescription.setLocale(documentStyle.locale()); setFamilyDescription(fontDescription, FontBuilder::initialFamilyDescription()); setSize(fontDescription, FontDescription::Size(FontSize::initialKeywordSize(), 0.0f, false)); updateSpecifiedSize(fontDescription, documentStyle); updateComputedSize(fontDescription, documentStyle); updateOrientation(fontDescription, documentStyle); documentStyle.setFontDescription(fontDescription); documentStyle.font().update(fontSelector); }
void FontBuilder::setFamilyDescription(const FontDescription::FamilyDescription& familyDescription) { setFamilyDescription(m_fontDescription, familyDescription); }