Set registry ISO10646 at run time

We don't know at compile time whether the X server even supports
Unicode. So take the configured map font, change the registry to
ISO10646 and try the resulting font string. Keep the configured
font if that doesn't work.
This commit is contained in:
Ray Chason
2022-11-05 11:56:21 -04:00
parent 0c7d42c739
commit 6754b85294
3 changed files with 94 additions and 13 deletions

View File

@@ -64,6 +64,10 @@ struct text_map_info_t {
square_height, /* we can calculate the correct */
square_ascent, /* placement of changes. */
square_lbearing;
#ifdef ENHANCED_SYMBOLS
XFontStruct *font;
#endif
};
struct tile_glyph_info_t {