Lines Matching refs:font_cfg

1544 ImFont* ImFontAtlas::AddFont(const ImFontConfig* font_cfg)  in AddFont()  argument
1547 IM_ASSERT(font_cfg->FontData != NULL && font_cfg->FontDataSize > 0); in AddFont()
1548 IM_ASSERT(font_cfg->SizePixels > 0.0f); in AddFont()
1551 if (!font_cfg->MergeMode) in AddFont()
1556 ConfigData.push_back(*font_cfg); in AddFont()
1564 memcpy(new_font_cfg.FontData, font_cfg->FontData, (size_t)new_font_cfg.FontDataSize); in AddFont()
1591 ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); in AddFontDefault() local
1594 font_cfg.OversampleH = font_cfg.OversampleV = 1; in AddFontDefault()
1595 font_cfg.PixelSnapH = true; in AddFontDefault()
1597 if (font_cfg.SizePixels <= 0.0f) in AddFontDefault()
1598 font_cfg.SizePixels = 13.0f * 1.0f; in AddFontDefault()
1599 if (font_cfg.Name[0] == '\0') in AddFontDefault()
1600 …ImFormatString(font_cfg.Name, IM_ARRAYSIZE(font_cfg.Name), "ProggyClean.ttf, %dpx", (int)font_cfg.… in AddFontDefault()
1603 …const ImWchar* glyph_ranges = font_cfg.GlyphRanges != NULL ? font_cfg.GlyphRanges : GetGlyphRanges… in AddFontDefault()
1604 … AddFontFromMemoryCompressedBase85TTF(ttf_compressed_base85, font_cfg.SizePixels, &font_cfg, glyph… in AddFontDefault()
1619 ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); in AddFontFromFileTTF() local
1620 if (font_cfg.Name[0] == '\0') in AddFontFromFileTTF()
1625 ImFormatString(font_cfg.Name, IM_ARRAYSIZE(font_cfg.Name), "%s, %.0fpx", p, size_pixels); in AddFontFromFileTTF()
1627 return AddFontFromMemoryTTF(data, (int)data_size, size_pixels, &font_cfg, glyph_ranges); in AddFontFromFileTTF()
1634 ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); in AddFontFromMemoryTTF() local
1635 IM_ASSERT(font_cfg.FontData == NULL); in AddFontFromMemoryTTF()
1636 font_cfg.FontData = ttf_data; in AddFontFromMemoryTTF()
1637 font_cfg.FontDataSize = ttf_size; in AddFontFromMemoryTTF()
1638 font_cfg.SizePixels = size_pixels; in AddFontFromMemoryTTF()
1640 font_cfg.GlyphRanges = glyph_ranges; in AddFontFromMemoryTTF()
1641 return AddFont(&font_cfg); in AddFontFromMemoryTTF()
1650 ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); in AddFontFromMemoryCompressedTTF() local
1651 IM_ASSERT(font_cfg.FontData == NULL); in AddFontFromMemoryCompressedTTF()
1652 font_cfg.FontDataOwnedByAtlas = true; in AddFontFromMemoryCompressedTTF()
1653 …MemoryTTF(buf_decompressed_data, (int)buf_decompressed_size, size_pixels, &font_cfg, glyph_ranges); in AddFontFromMemoryCompressedTTF()
1656 …har* compressed_ttf_data_base85, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* g… in AddFontFromMemoryCompressedBase85TTF() argument
1661 …tFromMemoryCompressedTTF(compressed_ttf, compressed_ttf_size, size_pixels, font_cfg, glyph_ranges); in AddFontFromMemoryCompressedBase85TTF()