FLTK logo

Re: [fltk.general] Re: Font problem with new build

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Re: Font problem with new build "'Albrecht Schlosser' via fltk.general" 06:19 Apr 10  
  On 4/10/24 09:18 TwoTrees Innerworld wrote:
... the old binary (built on 5-year-old Linux) runs fine, shows the proper fonts.
The new binary (built on the current Linux) shows the "miniature" fonts.
So, somehow, the fonts are available in the system, just not for the new build.
Apparently the new build doesn't find the fonts or somehow have access to them.

Is there a test I can do, or a build option to allow FLTK to find the font resource?

I second everything Ian posted in his recent reply, please read this first and follow his instructions to install the prerequisites.

The "simple" instructions below should get you going, but if you'd like to use CMake to build FLTK and your own application(s) please see advice at the end of this post. Note that it's important to build *and* test FLTK (i.e. try the provided test and demo programs) before you start building your own projects. I suggest the following approach:

Download a new snapshot of FLTK 1.4 (recommended) or the latest release tarball (currently 1.3.9) from the FLTK website, expand it, `cd` to the just expanded FLTK root dir, and then execute:

$ ./configure

This runs the configure script with all default options. Please save the output somewhere so you can post it if the build doesn't work. Now continue with:

$ make [-jN]

This builds FLTK with all default test and demo programs in the 'test' folder. Commandline switch '-jN' (w/o []) is optional and uses a parallel build. Replace 'N' with the number of CPU cores you want to use. If the build breaks with error messages, please post the error messages. If there are some warnings, please ignore them for now.

Then type:

$ cd test
$ ./demo


This runs the main `demo` GUI program with a menu (3x3 buttons) you can use to run all test programs. Alternatively you can run any of the test programs directly, e.g. test/editor, test/unittests, etc..

If this all works as expected you're ready to try your own projects. Congratulation!

However: If this still doesn't work as expected, please post the configure log you saved in the beginning (see above). This should give us a clue what's going awry. My suspicion is that you missed Xft dev files and more in your previous attempts (as Ian wrote in his post), but after installing all prerequisites it should work well.

Side note: we recommend using CMake for building FLTK 1.4 but it should also work well for 1.3.9. If you followed Ian's instructions you did already install CMake. Then read the file README.CMake.txt for instructions on how to build FLTK with CMake and how to use CMake to build your own projects that use FLTK.


--
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/5d41bfb9-421a-462a-81e3-cd920793cbaa%40aljus.de.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

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