mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-30 18:34:34 +01:00
Using spaces instead of tab for web readability
This commit is contained in:
parent
2c677c45c7
commit
e20077fbd0
@ -43,29 +43,29 @@ Configure bmfont:
|
|||||||
1. Load the .FNT data, e.g.
|
1. Load the .FNT data, e.g.
|
||||||
|
|
||||||
// proggy_clean_13 [default]
|
// proggy_clean_13 [default]
|
||||||
io.Font->LoadFromFile("proggy_clean_13.fnt");
|
io.Font->LoadFromFile("proggy_clean_13.fnt");
|
||||||
io.FontTexUvForWhite = ImVec2(0.0f/256.0f,0.0f/128);
|
io.FontTexUvForWhite = ImVec2(0.0f/256.0f,0.0f/128);
|
||||||
io.FontYOffset = +1;
|
io.FontYOffset = +1;
|
||||||
|
|
||||||
// proggy_small_12
|
// proggy_small_12
|
||||||
io.Font = new ImBitmapFont();
|
io.Font = new ImBitmapFont();
|
||||||
io.Font->LoadFromFile("proggy_small_12.fnt");
|
io.Font->LoadFromFile("proggy_small_12.fnt");
|
||||||
io.FontTexUvForWhite = ImVec2(84.0f/256.0f,20.0f/64);
|
io.FontTexUvForWhite = ImVec2(84.0f/256.0f,20.0f/64);
|
||||||
io.FontYOffset = +2;
|
io.FontYOffset = +2;
|
||||||
|
|
||||||
// proggy_small_14
|
// proggy_small_14
|
||||||
io.Font = new ImBitmapFont();
|
io.Font = new ImBitmapFont();
|
||||||
io.Font->LoadFromFile("proggy_small_14.fnt");
|
io.Font->LoadFromFile("proggy_small_14.fnt");
|
||||||
io.FontTexUvForWhite = ImVec2(84.0f/256.0f,20.0f/64);
|
io.FontTexUvForWhite = ImVec2(84.0f/256.0f,20.0f/64);
|
||||||
io.FontYOffset = +3;
|
io.FontYOffset = +3;
|
||||||
|
|
||||||
// courier_new_16
|
// courier_new_16
|
||||||
io.Font->LoadFromFile("courier_new_16.fnt");
|
io.Font->LoadFromFile("courier_new_16.fnt");
|
||||||
io.FontTexUvForWhite = ImVec2(1.0f/256.0f,4.0f/128);
|
io.FontTexUvForWhite = ImVec2(1.0f/256.0f,4.0f/128);
|
||||||
|
|
||||||
// courier_new_18
|
// courier_new_18
|
||||||
io.Font->LoadFromFile("courier_new_18.fnt");
|
io.Font->LoadFromFile("courier_new_18.fnt");
|
||||||
io.FontTexUvForWhite = ImVec2(4.0f/256.0f,5.0f/256);
|
io.FontTexUvForWhite = ImVec2(4.0f/256.0f,5.0f/256);
|
||||||
|
|
||||||
2. Load the matching .PNG data into a texture
|
2. Load the matching .PNG data into a texture
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user