Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15629 - Fonts messed up in lyx 1.3.0
Summary: Fonts messed up in lyx 1.3.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-13 09:03 UTC by Grant Goodyear (RETIRED)
Modified: 2003-10-16 07:17 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
badlyx.png (badlyx.png,39.97 KB, image/png)
2003-02-13 09:04 UTC, Grant Goodyear (RETIRED)
Details
ps3.lyx (ps3.lyx,8.90 KB, text/plain)
2003-02-13 09:05 UTC, Grant Goodyear (RETIRED)
Details
ps3.pdf (ps3.pdf,40.21 KB, application/octet-stream)
2003-02-13 09:07 UTC, Grant Goodyear (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Goodyear (RETIRED) gentoo-dev 2003-02-13 09:03:10 UTC
I'll attach my lyx file, a pdf file, and a screen shot.  Special symbols seem to
be having serious problem (for example, the first eq should have an integral sign).



Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Grant Goodyear (RETIRED) gentoo-dev 2003-02-13 09:04:16 UTC
Created attachment 8230 [details]
badlyx.png

Added screen capture
Comment 2 Grant Goodyear (RETIRED) gentoo-dev 2003-02-13 09:05:23 UTC
Created attachment 8231 [details]
ps3.lyx

Lyx file I'm using
Comment 3 Grant Goodyear (RETIRED) gentoo-dev 2003-02-13 09:07:19 UTC
Created attachment 8232 [details]
ps3.pdf

Added pdf file that displays fonts properly.
Comment 4 Grant Goodyear (RETIRED) gentoo-dev 2003-02-14 11:35:55 UTC
Danarmak mentions that the font problems are due to not having the latex-ttf-fonts package installed.  Unfortunately, the fonts have an annoying license, so for the time being people who need them should get them from the contrib directory at lyx.org's ftp site.
Comment 5 Dan Armak (RETIRED) gentoo-dev 2003-02-14 16:08:39 UTC
A temporary fix is to get latex-ttf-fonts from ftp://ftp.lyx.org/pub/lyx/contrib, unpack into any 
subdir of /usr/share/fonts, rerun fc-cache and restart lyx. works for me. 
However we can't ake lyx depend on those fonts because their license does not permit them 
to be used in a commercial environment. 
There are some other wierd things about this... 
   
I've mailed the lyx-usres list about this, saying: 
In short, I'd like to know how to set the font used by mathed when editing. 
lyx 1.3.0, qt frontend. There doesn't seem to be an option for it, and the 2 
standard font settings don't seem to affect it... (When rendering to ps etc., 
it renders ok.) 
 
In detail, there's a problem (not sure if it's a bug in lyx or a 
misconfiguration of something else): mathed draws capital latin letters 
instead of any math symbols or greek letters etc. See 
http://bugzilla.lyx.org/show_bug.cgi?id=876 (the attachements) for example. 
 
If the latex-ttf-fonts (BaKoMa) is installed as per 
http://bugzilla.lyx.org/show_bug.cgi?id=876 (though that's a different 
problem apparently), mathed works properly. Without bakoma, the 
computer-modern font is still available (provided, I think, by bluesky from 
tetex) but even if I add bluesky to fontconfig's list (this is xfree 
4.2.99.4) the mathed doesn't draw the right symbols. 
 
The problem with using BaKoMa is its license, which doesn't allow usage in 
commercial environments. 
Comment 6 Grant Goodyear (RETIRED) gentoo-dev 2003-04-09 17:52:45 UTC
I did an "emerge -DUp world" today, and all of a sudden my lyx fonts were
messed up (I already had the latex-ttf-fonts installed).  
After running fc-cache -fv the problem has been fixed.  Would
it make sense to add that command to lyx's pkg_postinst()?
Comment 7 John Levon 2003-05-07 11:24:28 UTC
This bug was essentially fixed in LyX 1.3.1 - instead of the wrong
symbol, you'll get the text version instead in red (e.g. "sum").
However, ideally we'd like to have on-screen symbols working by default.

Dan, did you get any further with the font you created ? Can you
update us?

I noticed another bug in it, btw: the display-style operators like
\sum and \prod are not high enough: they look vertically squashed.

If you're still having trouble creating this font, is there someone
else we could get to help us ? I really don't like this bakoma situation
any more than gentoo does.

John (LyX hacker)
Comment 8 Caleb Tennis (RETIRED) gentoo-dev 2003-05-12 22:33:01 UTC
Committed lyx 1.3.2 ebuild to portage - the last comment said this was essentially fixed in 
1.3.1.  Should this bug stay open? 
Comment 9 Grant Goodyear (RETIRED) gentoo-dev 2003-07-26 10:15:28 UTC
Please leave this bug open just so that our users can easily find it.
I use lyx regularly for scientific writing, and I'm still using the 1.2
branch until the lyx folks get symbols fixed in 1.3.  *Sigh*
Comment 10 John Levon 2003-07-26 10:26:36 UTC
It's Qt's problem not ours. However Dan Armak and others
worked hard on making a set of freely distributable fonts :

http://movementarian.org/lyxqt

They are under the same license as the source fonts (distributed with
LaTeX) and can, as far as I know, be distributed with Gentoo.

So the ball is firmly in Gentoo's court here.

(Furthermore, this problem is not present in the xforms frontend, so there
is no reason at all for you to use 1.2 in preference to 1.3)
Comment 11 Mike Gardiner (RETIRED) gentoo-dev 2003-10-08 03:41:41 UTC
opened the attached ps3.lyx in lyx-1.3.3 and compared it with the attached
screenshot and pdf and found it displays identically to the pdf. we almost
fixed here ?
Comment 12 Grant Goodyear (RETIRED) gentoo-dev 2003-10-08 10:37:50 UTC
Interesting.  I removed my ~/.fonts directory (which had the latex-xft-fonts
tarball unpacked) and emerged lyx-1.3.3. Looking at ps3.lyx I get red "int",
"psi", "delta", etcetera, instead of an actual integral sign, Greek Psi,
Greek Delta, etcetera. Restoring my ~/.fonts directory and rerunning fc-cache
-fv fixes the problem.  It looks to me like all we need to do is add the
latex-xft-fonts tarball as a source to be downloaded and unpacked in the
appropriate system fonts
directory.
Comment 13 Mike Gardiner (RETIRED) gentoo-dev 2003-10-09 06:04:07 UTC
Grant, sounds like the best solution, am committing now. And just for a bit
more information, check the the following link:

http://wiki.lyx.org/pmwiki.php/FAQ/Qt

This also means we can remove the big USE="qt" warning at the end of the
ebuild. I've modified 1.3.3 to include the fonts, could anyone report on
success/failure? Thanks very much for help on this.
Comment 14 Mike Gardiner (RETIRED) gentoo-dev 2003-10-16 07:17:50 UTC
week later, assuming success.