|
|
On Thu, 22 Jul 2021, 16:36 lifeattickville wrote: A quick sanity check before I submit a sample / issue.
Was toying with some code which happened to set the tooltip font to FL_FREE_FONT. When attempting to show the tooltip, I got a crash in Fl_Xlib_Graphics_Driver::get_font_name - as the font name is NULL.
Linux Mint 20.2, FLTK 1.4 built from source a couple of weeks ago.
To be expected?
Hi Kevin,
Yes, as Albrecht says, FL_FREE_FONT gives the index for the first unassigned (thus free) font entry.
So you can assign your own font to that index (or higher.)
But if you use it before a face is assigned to it, then it will be null... -- IanFrom my Fairphone FP3
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/CAGFM6daMccz949qLS_CmPn3GSGHccjwGCCRB1PzRCSdRDBCXMQ%40mail.gmail.com.
[ Direct Link to Message ] | |
|
| |