Esempio n. 1
0
FontConfig::FontConfig(QObject *parent) :
    QObject(parent)
{
    m_path = defaultFontsPath();
    m_size = 0;
    m_characters = defaultCharacters();
    m_hinting = HintingDefault;
    m_render_missing = false;
    m_antialiased = true;
    m_bold = 0;
    m_italic = false;
    m_width = 100.0f;
    m_height = 100.0f;
    m_line_spacing = 0;
    m_char_spacing = 0;
    m_dpi = 96;
}
Esempio n. 2
0
FontConfig::FontConfig(QObject *parent) :
    QObject(parent)
{
    //m_path = QDesktopServices::storageLocation(QDesktopServices::FontsLocation);
    m_path = QStandardPaths::writableLocation(QStandardPaths::FontsLocation);
    m_size = 0;
    m_characters = defaultCharacters();
    m_hinting = HintingDefault;
    m_render_missing = false;
    m_antialiased = true;
    m_bold = 0;
    m_italic = false;
    m_width = 100.0f;
    m_height = 100.0f;
    m_line_spacing = 0;
    m_char_spacing = 0;
    m_dpi = 96;
}