Sujet : Re: Build from source, get terrible fonts
De : rich (at) *nospam* example.invalid (Rich)
Groupes : comp.lang.tclDate : 22. Jun 2024, 02:34:44
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v559nk$3hr1k$2@dont-email.me>
References : 1
User-Agent : tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Luc <
luc@sep.invalid> wrote:
I built and installed Tcl and Tk 8.6.13 from source. And it works.
Except the fonts. The fonts look awful. Maybe they don't have antialias,
maybe it's something else, I'm not sure. I just know they look awful.
Really awful.
I also have 8.6.6 from my distro's repository and a compact/portable
version of 8.6.13 in FreeWrap, and their fonts look fine. Only my
compiled Tk looks bad.
Then I tried 8.6.14 and had the exact same problem.
Do you people have any idea why?
Run an ldd on the wish which has "good fonts" and on the one that has
"bad fonts". Compare what is linked. I bet you find the "bad fonts"
wish does not link to libfreetype.
What do you suggest I do to pinpoint the cause of the problem?
The above.
In case you're wondering, I configured it like this:
$ ./configure --disable-symbols --enable-shared --enable-threads
--enable-64bit --prefix /opt/tcltk8614
--with-tcl=/home/luc/newtcl/tcl8.6.14/unix
Check ./configure --help.
See if there is an "enable truetype" or "enable freetype" option.
If yes, rebuild while specifying that option. If you get errors, then
make sure you have the freetype "development" package installed (too
many debian/ubuntu derived distros separate everything into "use" an
"development" packages, and then omit installing the "development"
packages (which made /some/ sense years ago when a 4G hard drive was
considered large). But now, the result is things like 'true type'
support won't be auto-detected by configure unless the development
packages for it are first installed, leading to oddness like what you
just experienced -- the distro package works fine, your custom built
one has weirdness.