fixed fonts

This commit is contained in:
2026-06-18 10:02:43 -07:00
parent 5355a9eded
commit 1e6c10d156
5 changed files with 65 additions and 36 deletions

View File

@@ -92,5 +92,8 @@ private:
GLuint shader_program_;
};
/* Global instance — shared by all panels and radar stubs. */
/* Global instances — shared by all panels and radar stubs.
* g_text_renderer : FONT_SIZE_NORMAL (body text, controls, status bar)
* g_text_renderer_large: FONT_SIZE_TITLE (panel titles, scope headings) */
extern TextRenderer g_text_renderer;
extern TextRenderer g_text_renderer_large;

View File

@@ -151,10 +151,12 @@
#define FONT_PATH "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf"
#define FONT_SIZE_NORMAL 18u
#define FONT_SIZE_TITLE 24u
#define FONT_SIZE_TITLE 26u
// Pixels between text baselines at scale 1.0 with FONT_SIZE_NORMAL
#define LINE_HEIGHT 24.0f
// Pixels between text baselines at scale 1.0 with FONT_SIZE_TITLE
#define LINE_HEIGHT_LARGE 34.0f
// Pixel margin from panel edge for text placement
#define TEXT_MARGIN 10.0f