Lines Matching refs:ImWchar
1603 const ImWchar* glyph_ranges = font_cfg.GlyphRanges != NULL ? font_cfg.GlyphRanges : GetGlyphRangesDefault();
1609 ImFont* ImFontAtlas::AddFontFromFileTTF(const char* filename, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges)
1631 ImFont* ImFontAtlas::AddFontFromMemoryTTF(void* ttf_data, int ttf_size, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges)
1644 ImFont* ImFontAtlas::AddFontFromMemoryCompressedTTF(const void* compressed_ttf_data, int compressed_ttf_size, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges)
1656 ImFont* ImFontAtlas::AddFontFromMemoryCompressedBase85TTF(const char* compressed_ttf_data_base85, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges)
1679 int ImFontAtlas::AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset)
1756 const ImWchar* SrcRanges; // Ranges as requested by user (user is allowed to request too much, e.g. 0x0020..0xFFFF)
1831 for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2)
1848 for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2)
2031 dst_font->AddGlyph((ImWchar)codepoint, q.x0 + char_off_x, q.y0 + font_off_y, q.x1 + char_off_x, q.y1 + font_off_y, q.s0, q.t0, q.s1, q.t1, char_advance_x_mod);
2140 r.Font->AddGlyph((ImWchar)r.ID, r.GlyphOffset.x, r.GlyphOffset.y, r.GlyphOffset.x + r.Width, r.GlyphOffset.y + r.Height, uv0.x, uv0.y, uv1.x, uv1.y, r.GlyphAdvanceX);
2150 const ImWchar* ImFontAtlas::GetGlyphRangesDefault()
2152 static const ImWchar ranges[] =
2160 const ImWchar* ImFontAtlas::GetGlyphRangesKorean()
2162 static const ImWchar ranges[] =
2172 const ImWchar* ImFontAtlas::GetGlyphRangesChineseFull()
2174 static const ImWchar ranges[] =
2187 static void UnpackAccumulativeOffsetsIntoRanges(int base_codepoint, const short* accumulative_offsets, int accumulative_offsets_count, ImWchar* out_ranges)
2191 out_ranges[0] = out_ranges[1] = (ImWchar)(base_codepoint + accumulative_offsets[n]);
2201 const ImWchar* ImFontAtlas::GetGlyphRangesChineseSimplifiedCommon()
2251 static ImWchar base_ranges[] = // not zero-terminated
2259 static ImWchar full_ranges[IM_ARRAYSIZE(base_ranges) + IM_ARRAYSIZE(accumulative_offsets_from_0x4E00) * 2 + 1] = { 0 };
2268 const ImWchar* ImFontAtlas::GetGlyphRangesJapanese()
2310 static ImWchar base_ranges[] = // not zero-terminated
2317 static ImWchar full_ranges[IM_ARRAYSIZE(base_ranges) + IM_ARRAYSIZE(accumulative_offsets_from_0x4E00)*2 + 1] = { 0 };
2326 const ImWchar* ImFontAtlas::GetGlyphRangesCyrillic()
2328 static const ImWchar ranges[] =
2339 const ImWchar* ImFontAtlas::GetGlyphRangesThai()
2341 static const ImWchar ranges[] =
2365 AddChar((ImWchar)c);
2369 void ImFontGlyphRangesBuilder::AddRanges(const ImWchar* ranges)
2372 for (ImWchar c = ranges[0]; c <= ranges[1]; c++)
2376 void ImFontGlyphRangesBuilder::BuildRanges(ImVector<ImWchar>* out_ranges)
2381 out_ranges->push_back((ImWchar)n);
2384 out_ranges->push_back((ImWchar)n);
2397 FallbackChar = (ImWchar)'?';
2443 IndexLookup[codepoint] = (ImWchar)i;
2448 if (FindGlyph((ImWchar)' '))
2453 tab_glyph = *FindGlyph((ImWchar)' ');
2457 IndexLookup[(int)tab_glyph.Codepoint] = (ImWchar)(Glyphs.Size-1);
2467 void ImFont::SetFallbackChar(ImWchar c)
2479 IndexLookup.resize(new_size, (ImWchar)-1);
2484 void ImFont::AddGlyph(ImWchar codepoint, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x)
2488 glyph.Codepoint = (ImWchar)codepoint;
2507 void ImFont::AddRemapChar(ImWchar dst, ImWchar src, bool overwrite_dst)
2512 if (dst < index_size && IndexLookup.Data[dst] == (ImWchar)-1 && !overwrite_dst) // 'dst' already exists
2518 IndexLookup[dst] = (src < index_size) ? IndexLookup.Data[src] : (ImWchar)-1;
2522 const ImFontGlyph* ImFont::FindGlyph(ImWchar c) const
2526 const ImWchar i = IndexLookup.Data[c];
2527 if (i == (ImWchar)-1)
2532 const ImFontGlyph* ImFont::FindGlyphNoFallback(ImWchar c) const
2536 const ImWchar i = IndexLookup.Data[c];
2537 if (i == (ImWchar)-1)
2735 void ImFont::RenderChar(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImWchar c) const
2860 if (const ImFontGlyph* glyph = FindGlyph((ImWchar)c))