STR #1012

GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 1.1 ]

STR #1012

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:2 - Low, e.g. a documentation error or undocumented side-effect
Scope:2 - Specific to an operating system
Subsystem:X11
Summary:Fl::set_fonts() does not work with Xft under Xwindows
Version:1.1-current
Created By:ianmacarthur
Assigned To:matt
Fix Version:1.1.7 (SVN: v4592)
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:


Name/Time/Date Filename/Size top right image
 
#1 ianmacarthur
09:32 Sep 04, 2005
fl_set_fonts_xft.cxx
11k
 
bottom left image   bottom right image

Trouble Report Comments:


Name/Time/Date Text top right image
 
#1 ianmacarthur
09:32 Sep 04, 2005
Here's one I think we ought to fix before 1.1.7.is frozen (sorry Matthias...!)

The fl_set_fonts_xft version of ::set_fonts() is just a stub, it doesn't work.
This means that (for example) the test/fonts demo only shows the 16 base fonts, if built with Xft under Xwindows.

I have a hack of fl_set_fonts_xft.cxx that "fixes" this - I'll try and post something, possibly not a patch 'cos it's changed a fair bit.

Anyhow, this "works" well enough, but it's not really complete. It doesn't sort the faces in quite the same way the core fonts X system does, and it always just loads all the faces (but they are sort of "utf" anyway, so maybe that's OK?)

Also, the code was written as I tried to learn how fontconfig etc. work, so it's a long way from being pretty...

Can folk give it a spin and see how it goes? I've tried it on the 3 unix machines I can get to on a Sunday afternoon and it's OK, but...

Just rebuild and run the fonts demo, I guess.

Cheers,
--
Ian
 
 
#2 matt
06:53 Oct 13, 2005
Fixed in Subversion repository.

Thanks for the patch!
 
bottom left image   bottom right image

Return to Bugs & Features ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2021 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.