Skip to content
Snippets Groups Projects
Commit ab05d65e authored by David Tschumperlé's avatar David Tschumperlé
Browse files

Improve spacing between font characters when using CImg<T>::draw_text().

parent 65e4d0c5
No related branches found
No related tags found
No related merge requests found
...@@ -60409,7 +60409,9 @@ namespace cimg_library_suffixed { ...@@ -60409,7 +60409,9 @@ namespace cimg_library_suffixed {
font[' '].resize(font['f']._width,-100,-100,-100,0); font[' '].resize(font['f']._width,-100,-100,-100,0);
if (' ' + 256<font.size()) font[' ' + 256].resize(font['f']._width,-100,-100,-100,0); if (' ' + 256<font.size()) font[' ' + 256].resize(font['f']._width,-100,-100,-100,0);
} }
cimglist_for(font,l) font[l].resize(std::max(font['j']._width,font[l]._width) + padding_x,-100,1,1,0,0,0.55f); cimglist_for(font,l)
font[l].resize(std::max(font[';']._width,font[l]._width) + padding_x,
-100,1,1,0,0,0.55f);
font.insert(256,0); font.insert(256,0);
cimglist_for_in(font,0,255,l) font[l].assign(font[l + 256]._width,font[l + 256]._height,1,3,1); cimglist_for_in(font,0,255,l) font[l].assign(font[l + 256]._width,font[l + 256]._height,1,3,1);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment