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

Re: [MiNT] Redraw bug in current trunk



Am 15.09.2010, 22:54 Uhr, schrieb Jo Even Skarstein <joska@online.no>:

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

Oh! No, I only tried if this function is the source of the problem.

a TrueType-font, so it looks like someone has tried this at some point.

Yes - unfinished experiments.


  (*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

Yes.

font. What does text_extent return?

16.

This will need a deeper look.

--
Helmut Karlowski