1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-30 17:27:57 +00:00

font system redesigned, font selection

This commit is contained in:
Zeno Rogue
2024-07-10 00:03:00 +02:00
parent 92d7eafcc3
commit 6bbd57ecbe
5 changed files with 128 additions and 67 deletions

View File

@@ -2872,7 +2872,7 @@ EX hyperpoint default_pointfunction(ld x, ld y) {
#if !CAP_EXTFONT
EX void write_in_space(const shiftmatrix& V, int fsize, double size, const string& s, color_t col, int frame IS(0), int align IS(8), PPR prio IS(PPR::TEXT), pointfunction pf IS(default_pointfunction)) {
init_glfont(fsize);
glfont_t& f(*(glfont[fsize]));
glfont_t& f(*(cfont->glfont[fsize]));
finf.texture_id = f.texture;
int fstart = isize(finf.tvertices);