font selection dialog for FLTK?

18 показвания
Преминаване към първото непрочетено съобщение

janezz55

непрочетено,
14.10.2021 г., 12:48:1714.10.21 г.
до fltk.general
I know there probably isn't much on offer?

Ian MacArthur

непрочетено,
14.10.2021 г., 14:53:5414.10.21 г.
до Fltk General
On 14 Oct 2021, at 17:24, janezz55 wrote:
>
> I know there probably isn't much on offer?

No, there’s no fltk font-chooser widget as such.
That sort of convenience widget is somewhat outside the usual scope of fltk - though the bits you need to write your own are all there, of course.
I assume you have looked at the “fonts” and “utf8” applications in the test folder? They show the basics of font selection and choosing, though neither is a font-chooser as such.

There are a few kicking about though - I’ve seen links posted in the past (none of which I can now find, but your search may be more fruitful.)

Writing a good font chooser is *hard* though, I’ve had several goes over the years and not liked any of the solutions I came up with...



Greg Ercolano

непрочетено,
14.10.2021 г., 16:12:4814.10.21 г.
до fltkg...@googlegroups.com


On 10/14/21 9:24 AM, janezz55 wrote:
I know there probably isn't much on offer?

    A font chooser for FLTK fonts, like the one in fluid? (FL_HELVETICA, etc)
    Or a font chooser for the local OS like in test/fonts?
    Or something different than those?

janezz55

непрочетено,
14.10.2021 г., 17:04:0814.10.21 г.
до fltk.general

No, there’s no fltk font-chooser widget as such.
That sort of convenience widget is somewhat outside the usual scope of fltk - though the bits you need to write your own are all there, of course.
 I am not so sure, there is a color chooser dialog.

janezz55

непрочетено,
14.10.2021 г., 17:04:1214.10.21 г.
до fltkg...@googlegroups.com
Any of those will suffice, I am just too lazy to write one myself.
Отговор до всички
Отговор до автора
Препращане
0 нови съобщения