> Yes, I thought about that at the time, but chose not to do it.
>
> The problem is, it is not obvious what the right answer is, for a string
> that has carriage returns / line feeds in it.

I actually needed this feature in my app, which coincidentally, was
also rendering musical symbols.  I took the brute force approach: I
draw each symbol (which is actually multiple glyphs composed together)
on a white buffer and then see how many pixels of white border there
are.  There are a small number of symbols so I can easy cache the
sizes.

It was a real pain to implement but seems to mostly be working.

_______________________________________________
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to