Esempio n. 1
0
 explicit SharedFontInternal (const Typeface::Ptr& face) noexcept
     : typeface (face),
       typefaceName (face->getName()),
       typefaceStyle (face->getStyle()),
       height (FontValues::defaultFontHeight)
 {
     jassert (typefaceName.isNotEmpty());
 }
Esempio n. 2
0
Font::SharedFontInternal::SharedFontInternal (const Typeface::Ptr& typeface_) noexcept
    : typefaceFamily (typeface_->getFamily()),
      typefaceStyle (typeface_->getStyle()),
      height (FontValues::defaultFontHeight),
      horizontalScale (1.0f),
      kerning (0),
      ascent (0),
      underline (false),
      typeface (typeface_)
{
}
Esempio n. 3
0
 SharedFontInternal (const Typeface::Ptr& typeface_) noexcept
     : typefaceName (typeface_->getName()),
       typefaceStyle (typeface_->getStyle()),
       height (FontValues::defaultFontHeight),
       horizontalScale (1.0f),
       kerning (0),
       ascent (0),
       underline (false),
       typeface (typeface_)
 {
     jassert (typefaceName.isNotEmpty());
 }
Esempio n. 4
0
Font::Font (const Typeface::Ptr& typeface) throw()
    : font (new SharedFontInternal (typeface->getName(), defaultFontHeight,
                                    1.0f, 0, 0, Font::plain, typeface))
{
}