Lines Matching refs:Fonts

228      io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height);
231 // After we have created the texture, store its pointer/identifier (_in whichever format your engine uses_) in 'io.Fonts->TexID'.
234 io.Fonts->TexID = (void*)texture;
529 (1.30) - removed GetDefaultFontData(). uses io.Fonts->GetTextureData*() API to retrieve uncompressed pixels.
531 became: { unsigned char* pixels; int width, height; io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); <..Upload texture to GPU>; io.Fonts->TexId = YourTextureIdentifier; }
534 (1.30) - added texture identifier in ImDrawCmd passed to your render function (we can now render images). make sure to set io.Fonts->TexID.
777 io.Fonts->AddFontFromFileTTF("myfontfile.ttf", size_in_pixels);
778 io.Fonts->GetTexDataAsRGBA32() or GetTexDataAsAlpha8()
785 io.Fonts->AddFontFromFileTTF("MyDataFolder\MyFontFile.ttf", size_in_pixels); // WRONG (you are escape the M here!)
786 io.Fonts->AddFontFromFileTTF("MyDataFolder\\MyFontFile.ttf", size_in_pixels); // CORRECT
787 io.Fonts->AddFontFromFileTTF("MyDataFolder/MyFontFile.ttf", size_in_pixels); // ALSO CORRECT
800 ImFont* font0 = io.Fonts->AddFontDefault();
801 ImFont* font1 = io.Fonts->AddFontFromFileTTF("myfontfile.ttf", size_in_pixels);
802 ImFont* font2 = io.Fonts->AddFontFromFileTTF("myfontfile2.ttf", size_in_pixels);
803 io.Fonts->GetTexDataAsRGBA32() or GetTexDataAsAlpha8()
813 io.Fonts->AddFontFromFileTTF("myfontfile.ttf", size_pixels, &config);
819 io.Fonts->AddFontDefault();
820 io.Fonts->AddFontFromFileTTF("fontawesome-webfont.ttf", 16.0f, &config, ranges); // Merge icon font
821 io.Fonts->AddFontFromFileTTF("myfontfile.ttf", size_pixels, NULL, &config, io.Fonts->GetGlyphRangesJapanese()); // Merge japanese glyphs
827 io.Fonts->AddFontFromFileTTF("myfontfile.ttf", size_in_pixels, NULL, io.Fonts->GetGlyphRangesJapanese());
834 builder.AddRanges(io.Fonts->GetGlyphRangesJapanese()); // Add one of the default ranges
836 io.Fonts->AddFontFromFileTTF("myfontfile.ttf", size_in_pixels, NULL, ranges.Data);
1165 Fonts = NULL;
3371 IM_ASSERT(g.IO.Fonts->Fonts.Size > 0 && "Font Atlas not built. Did you call io.Fonts->GetTexDataAsRGBA32() / GetTexDataAsAlpha8() ?");
3372 IM_ASSERT(g.IO.Fonts->Fonts[0]->IsLoaded() && "Font Atlas not built. Did you call io.Fonts->GetTexDataAsRGBA32() / GetTexDataAsAlpha8() ?");
3417 g.IO.Fonts->Locked = true;
3424 g.OverlayDrawList.PushTextureID(g.IO.Fonts->TexID);
3565 if (g.IO.Fonts && g.FontAtlasOwnedByContext)
3567 g.IO.Fonts->Locked = false;
3568 IM_DELETE(g.IO.Fonts);
3570 g.IO.Fonts = NULL;
3843 g.IO.Fonts->Locked = false;
5673 IM_ASSERT(font && font->IsLoaded()); // Font Atlas not created. Did you call io.Fonts->GetTexDataAsRGBA32 / GetTexDataAsAlpha8 ?