bluescan / tacentview

An image and texture viewer for tga, png, apng, exr, dds, pvr, ktx, ktx2, astc, pkm, qoi, gif, hdr, jpg, tif, ico, webp, and bmp files. Uses Dear ImGui, OpenGL, and Tacent. Useful for game devs as it displays information like the presence of an alpha channel and querying specific pixels for their colour.
ISC License
339 stars 33 forks source link

Precompute the font raster images. #92

Closed bluescan closed 1 year ago

bluescan commented 1 year ago

Precompute the font raster images since now 3 ttf point sizes are being processed on load and I don't want startup times to suffer,

bluescan commented 1 year ago

Didn't quite implement as written, but did embed font for faster bootup by using the ImGui binary-to-compressed tool. Updated Roboto font to latest version. Although the font is now embedded, I've kept the updated ttf in the Data directory for reference and politeness -- additionally it allows me to easily switch back to non-embedded if necessary.