[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Redraw bug in current trunk



On 09/15/2010 09:15 PM, Helmut Karlowski wrote:

>     (*v->api->t_font)(v, wti->n.p, 1); // 103);
> //    if (v->font_rid != v->font_sid)
> //      (*v->api->t_font)(v, wti->n.p, 13384);
>     if (v->font_rid != v->font_sid)
>       (*v->api->t_font)(v, wti->n.p, 1);

Font is hardcoded to ID 1... Have you tried changing the font? 13384 is
a TrueType-font, so it looks like someone has tried this at some point.

>   (*v->api->t_effects)(v, wti->n.e);
>   (*v->api->text_extent)(v, "X", &wti->n, &w, &h);
>   (*v->api->t_effects)(v, 0);
>   //(*v->api->t_extent)(v, "A", &w, &h);
> //  h += 2;

If this last line was uncommented, h should really be 18 with the 10pt
font. What does text_extent return?

Jo Even