[REBOL] Re: Multiple Fonts in area
From: nitsch-lists:netcologne at: 24-Oct-2002 20:42
Am Donnerstag, 24. Oktober 2002 19:43 schrieb Romano Paolo Tenca:
> Hi Gabriele
>
> > You don't need to draw a face to be able to use SIZE-TEXT on it.
>
> You do not need to DISPLAY a face...
>
> > RPT> Is it not better to draw only once with the method which permit to
>
> calculate
>
> > RPT> the length?
> >
> > If there was one such method...
>
> Using standard face not draw effect.
>
> But perhaps too many faces in a window slows down the view engine so that
> using draw can be more fast.
>
> At the end, i think we have 2 inefficient ways to do the thing. Rebol is
> lacking something on this area.
>
not benchmarked, but size-text should be pretty fast.
there is a native os-function to do only size-calculation.
it needs text, font and some args.
i think /view takes the arguments from the face and calls it.
so instead of
size-text face/text face/font/name face/font/size ....
one simply can call [size-text face]
> ---
> Ciao
> Romano
greetings
Volker