Commit Graph

34 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
4603363fbc Update check_glyphs.lyx document 2022-11-20 21:19:44 +01:00
Enrico Forestieri
50294f6442 Rename and update description of fonts 2020-09-03 21:46:16 +02:00
Pavel Sanda
bc93c6f99e Update check_glyphs.lyx. 2020-09-03 18:39:05 +02:00
Enrico Forestieri
a9afdbb73c Personalize fonts
When the fonts distributed with texlive with same family name
as ours are also managed by fontconfig, Qt is not able to
discriminate ours by the style only. In order to be sure Qt
will load our fonts, we change the foundry name from 'PfEd'
to 'LyEd' and augment the font family name with this foundry
name. This only works on *nix, because adding a foundry name
seemingly breaks things on Windows. However, this is a *nix
only problem, seemingly.
2020-09-03 17:46:30 +02:00
Pavel Sanda
2fad89df08 This test is no more just about stmary10. 2020-08-30 10:50:58 +02:00
Pavel Sanda
5054204d53 Add new section about problems on opensuse. 2020-08-30 10:50:58 +02:00
Thibaut Cuvelier
d75ff9931d Revert "Support the mathbbm font."
This reverts commit e709a6626e.
2020-07-28 18:01:38 +02:00
Thibaut Cuvelier
e709a6626e Support the mathbbm font.
Should just be able to read formulae, not add it from the GUI, as it's mostly redundant with mathds and mathbb.
2020-07-27 03:15:00 +02:00
Enrico Forestieri
5a80f7bb6a Add support for the doublestroke package
This commit adds the mathed command \mathds that selects a
font more appropriate than \mathbb for typesetting the
mathematical symbols for the natural (N), whole numbers (Z),
rational numbers (Q), real numbers (R), complex numbers (C),
and some others.

As in the \mathbb case, only capital letters are supported,
but in addition one can also typeset a symbol often used for
representing the indicator function (\mathds{1}) and the
letters a, h, k.

Fixes bug #11887.
2020-06-11 16:42:31 +02:00
Günter Milde
cb3e79f9a0 Use utf8 as inputenc for documentation, examples, and templates. 2019-05-08 21:29:01 +02:00
Juergen Spitzmueller
2860266e30 remove buildlyxdir again
per request
2019-03-25 16:46:04 +01:00
Juergen Spitzmueller
aed6755f59 Update \origin specifications 2019-03-24 17:34:29 +01:00
Pavel Sanda
20ab606975 wasy10 font: fix glyphs codepoints 9,10,12,13.
92680495b follow-up.

pointer:	9 -> 170
bell:		10 -> 171
quarternote:	12 -> 172
halfnote:	13 -> 174

This should be the final one.
2018-03-26 21:54:46 +02:00
Pavel Sanda
022bc036ca * stmary10.lyx 2018-03-23 11:11:21 +01:00
Pavel Sanda
0da254c811 stmary10 font: fix glyphs codepoints 10,12,13.
92680495b follow-up.

minuso: 10 -> 171
sslash: 12 -> 172
bbslash:13 -> 174
varcurlywedge: 9 -> 254 -> 170 (first move by Georg)
2018-03-23 10:18:02 +01:00
Pavel Sanda
92680495bb esint10: attempt on to fix empty symbol glyphs.
With advent of qt5 glyphs on codepoints 10, 12, 13 can't be shown anymore.

In this patch we copy the glyph pairs to new codepoints:
dotsint: 19->41 (this one was already moved by Goerg, now moving to the same block)
oint: 11->43
oiint:13->45

I couldn't find fix where both qt4 & qt5 would show correct results,
so this patch fixes qt5 situation, but breaks qt4, which hopefully
won't be needed for master.
Testing and debuging is somewhat tricky, becuse qt sometimes prefer to
load global fonts in /usr/share while ignoring the local git tree.

To be continued in other fonts.

Related reports:
https://www.lyx.org/trac/ticket/8493
https://bugreports.qt.io/browse/QTBUG-66266
2018-03-22 02:26:46 +01:00
Kornel Benko
867867859b Add Reame to lib/fonts/test 2018-03-20 13:41:29 +01:00
Richard Kimberly Heck
5912f25f46 Fix problem with conversion of stmary10.lyx. 2018-03-19 18:46:48 -04:00
Georg Baum
e179b03065 Really regenerate cmex10.ttf from .sfd at af970c20
I somehow managed to submit the wrong file at 313d4c0dc8.
Thanks again Enrico for noticing.
2016-01-24 11:40:03 +01:00
Georg Baum
313d4c0dc8 Regenerate cmex10.ttf from cmex10.sfd at af970c20
Thanks to Enrico for doing the actual work (my fontforge omits the
TtInstrs...EndTTInstrs blocks for some reason I do not understand).
I did only check that the only difference between the old and new .ttf is the
changed position of the bracketleftbigg glyph. This does finally fix bug 6115.
2016-01-20 21:14:08 +01:00
Georg Baum
af970c2055 Move bracketleftbigg to correct position
Generating a ttf from cmex10.sfd would fix bug 6115, but unfortunately I am
unable to export a ttf with the same settings as the existing one, so this has
still to be done.
2016-01-17 10:51:26 +01:00
Enrico Forestieri
a3926b9e60 Add fontforge files 2016-01-16 15:46:48 +01:00
Uwe Stöhr
9766e43a83 stmary10.lyx: update fileformat 2016-01-13 03:17:15 +01:00
Enrico Forestieri
f496ec373b Solve the "soft-hyphen" (0x00ad) symbol problem.
After the str-metrics merge, the kludge for displaying symbols whose
code point corresponds to a soft-hyphen was not working anymore.
The solution is replicating the offending glyphs with index 0x00ad
at a different index. They were replicated at 0x00ac, whose glyph
was missing in all affected fonts.

However, this would not work by alone because, if a system font with
same family name exists, it would be picked up instead of the right one
(at least on non-Windows platforms). For this reason, the style of the
fonts has been changed from "Regular" to "Lyx", so that we can discriminate
the right font. However, this requires using at least Qt 4.8. If an
older Qt is used *and* a system font with same family name is already
available, the affected glyphs will all turn out on screen as the
"logical not" symbol.

I have also set the executable flag on the font files, because on Windows
they are loaded only in this case.

This solves #9229.
2015-01-21 14:12:42 +01:00
Georg Baum
a970df2a13 Add missing license information for rsfs10.ttf. 2014-10-14 21:40:17 +02:00
Georg Baum
f67cf6f4bb Add support for stmaryrd.sty (bug #8434)
The stmaryrd package adds support for lots of math symbols, using a font
designed to accompany the computer modern fonts. The changes in detail:

- Fix generate_symbols_list.py to work with stmaryrd.sty. It loooks like it
  was automatically translated from a perl version and never used.
- Generate the new symbols in lib/symbols using generate_symbols_list.py and
  add some manual adjustments
- Generate stmary10.ttf by a simple ttf export from stmary10.sfd with fontforge
- Add license info for stmary10.ttf
- Create a test file with all symbols from stmaryrd.sty. Actually it would be
  nice to have this for the other fonts as well.
- The mechanics: lyx2lyx, tex2lyx, font machinery etc.
2012-12-15 13:10:31 +01:00
Georg Baum
8bd16005a9 Move some glyphs up by 800 units.
Without this, qt will enlarge some glyphs out of proportion (no, I don't
understand why it does this, and I found out by accident how to avoid it).
Still, the vertical alignment is only roughly correct (also for the untouched
glyphs). If somebody cares some fine adjustment would be nice.
2012-12-15 11:21:01 +01:00
Georg Baum
2f0e57cad4 Re-encode stmary10 font
Use a 1:1 unicode "encoding" as for all other math symbol fonts.
This is not correct for using the font outside of LyX, but in LyX we misuse
the first 255 code points for symbol fonts (see code points of existing fonts
in lib/symbols). These code points are identical with the postscript versions
of the fonts, so if qt was able to use postscript fonts, they could be used
instead of the truetype versions.
The character varcurlywedge is duplicated at position 254, since qt refuses to
display a font at the tab position (9).
In addition, get rid of the broken private directory which is not needed for
generating ttf.
2012-12-14 22:30:47 +01:00
Georg Baum
a4a1806bb6 Import stmary10 front from stmary10.pfb
This is the result of loading
http://mirrors.ctan.org/fonts/stmaryrd/ps-type1/hoekwater/stmary10.pfb
into fontforge and saving in fontforge format. It will be needed to fix
bug #8434. I am saving it in fontforge format since a few modifications are
needed before a working .ttf can be exported.
2012-12-14 22:16:06 +01:00
Pavel Sanda
45ab02e550 Prepare for Math Formal Script Family.
Add rsfs10.ttf generated from CTAN's rsfs fonts.
This is really beautiful script.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34938 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-17 15:00:12 +00:00
Georg Baum
3d7878212b Add missing esint bits.
They should have been part of the initial commit, but I overlooked them.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28355 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-04 19:57:02 +00:00
Enrico Forestieri
c2f54cd891 Add the esint font to the private fonts.
The \dotsint glyph is remapped to an unsed code point in the
font such that to maintain compatibility with the TeX font
and convince Qt4 to show the glyph.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20786 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-06 15:30:29 +00:00
Enrico Forestieri
5f111e8070 Fix bug 2326
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20781 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-06 13:30:03 +00:00
Uwe Stöhr
13fa44d3e2 Add math fonts to SVN
(please check if the Makefile entry is complete, I couldn't test this here)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17816 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-15 11:46:26 +00:00