Am 19.06.07, 10:13 +0100 schrieb MacArthur, Ian (SELEX) (UK):

> > Fl::set_font around line 204 does not influence the text font.
 
> No, it should be picking a unicode capable font and using that... Seems
> to be working for me, at any rate...

I thought, I could switch the font with the above call to FLTK. What does 
this large part in utf8.cxx, when it does not affect visually? ...

... ok it works as soon as I found a suitable font name.

I can see the glyphs now in the utf8 demo. Great. 
Lets see how to use it in an application.

> What does the fonts demo show if you run that? Perhaps you could pick a
> font using the fonts demo, then modify the utf8 demo to explicitly use
> that font and see how it goes. The utf8 demo is *supposed* to be

I had to figure out the Fl::s/get_font* functions more. 
What a pitty I am coming so late around these.
They seems to be only present in the class documentation. 

Thanks for the hint.

Btw. picking is nice, it could work like xfontsel tool.
A patch is attached for a "Copy" button in fonts.cxx. Just in case it is 
useful to someone.

> choosing an iso10646 font, but maybe it is just getting the first font
> that claims to be iso10646 compatible, and that font doesn't have all
> the glyphs...
> 
> Also - are you building with or without Xft enabled? I always have Xft
> enabled, so that might make a difference?

configure --prefix=/opt/kai-uwe --enable-xinerama --enable-xft 
--enable-threads --enable-debug

kind regards
Kai-Uwe Behrmann
--
developing for colour management 
www.behrmann.name + www.oyranos.org + www.cinepaint.org
32a33
> #include <Fl/Fl_Button.H>
55a57
> Fl_Button * butobj;
65a68
>   printf("neuer Font: %d\n", fn);
104a108,113
> void copy_cb(Fl_Widget *, long) {
>   const char* fontname = Fl::get_font( (Fl_Font)textobj->font );
>   int len = strlen( fontname );
>   Fl::copy( fontname, len, 0 );
> }
> 
109c118
<   form = new Fl_Window(550,370);
---
>   form = new Fl_Window(550,405);
135a145,147
>   butobj = new Fl_Button( 10, 370, 100, 25, "Copy");
>   butobj->callback(copy_cb);
>   butobj->tooltip("Copy the font name to the clipbord. Fl::set_font() 
> format.");
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to