* surface mount, to-92 markings. Fixed ~5min crash.
* Better LED illumination. Other minor changes.
*
* surface mount, to-92 markings. Fixed ~5min crash.
* Better LED illumination. Other minor changes.
*
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
{
GLfloat texfg[] = {0.7, 0.7, 0.7, 1.0};
GLfloat s = 0.015;
{
GLfloat texfg[] = {0.7, 0.7, 0.7, 1.0};
GLfloat s = 0.015;
- w = texture_string_width (ci->font, c->text, &h);
+ texture_string_metrics (ci->font, c->text, &e, 0, 0);
+ w = e.width;
+ h = e.ascent + e.descent;
{
GLfloat texfg[] = {0.7, 0.7, 0.7, 1.0};
GLfloat s = 0.015;
{
GLfloat texfg[] = {0.7, 0.7, 0.7, 1.0};
GLfloat s = 0.015;
- w = texture_string_width (ci->font, t->text, &h);
-
+ texture_string_metrics (ci->font, t->text, &e, 0, 0);
+ w = e.width;
+ h = e.ascent + e.descent;
{
GLfloat texfg[] = {0.7, 0.7, 0.7, 1.0};
GLfloat s = 0.015;
{
GLfloat texfg[] = {0.7, 0.7, 0.7, 1.0};
GLfloat s = 0.015;
- w = texture_string_width (ci->font, t->text, &h);
-
+ texture_string_metrics (ci->font, t->text, &e, 0, 0);
+ w = e.width;
+ h = e.ascent + e.descent;