mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +00:00
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.
This commit is contained in:
parent
d37db2225b
commit
1f1a8f6007
@ -50,6 +50,7 @@ OS2SupXOff: 0
|
||||
OS2SupYOff: 0
|
||||
OS2StrikeYSize: 102
|
||||
OS2StrikeYPos: 530
|
||||
OS2Vendor: 'LyEd'
|
||||
OS2UnicodeRanges: 00000000.00000000.00000000.00000000
|
||||
MarkAttachClasses: 1
|
||||
DEI: 91125
|
||||
|
Binary file not shown.
@ -50,7 +50,7 @@ OS2SupXOff: 0
|
||||
OS2SupYOff: 1175
|
||||
OS2StrikeYSize: 102
|
||||
OS2StrikeYPos: 530
|
||||
OS2Vendor: 'PfEd'
|
||||
OS2Vendor: 'LyEd'
|
||||
OS2CodePages: 00000001.00000000
|
||||
OS2UnicodeRanges: 00000000.00000000.00000000.00000000
|
||||
MarkAttachClasses: 1
|
||||
|
Binary file not shown.
@ -50,6 +50,7 @@ OS2SupXOff: 0
|
||||
OS2SupYOff: 1186
|
||||
OS2StrikeYSize: 102
|
||||
OS2StrikeYPos: 530
|
||||
OS2Vendor: 'LyEd'
|
||||
OS2UnicodeRanges: 00000000.00000000.00000000.00000000
|
||||
DEI: 91125
|
||||
TtTable: prep
|
||||
|
Binary file not shown.
@ -50,7 +50,7 @@ OS2SupXOff: 0
|
||||
OS2SupYOff: 723
|
||||
OS2StrikeYSize: 102
|
||||
OS2StrikeYPos: 530
|
||||
OS2Vendor: 'PfEd'
|
||||
OS2Vendor: 'LyEd'
|
||||
OS2CodePages: 00000001.00000000
|
||||
OS2UnicodeRanges: 00000000.00000000.00000000.00000000
|
||||
MarkAttachClasses: 1
|
||||
|
Binary file not shown.
@ -52,7 +52,7 @@ OS2SupXOff: 0
|
||||
OS2SupYOff: 480
|
||||
OS2StrikeYSize: 49
|
||||
OS2StrikeYPos: 258
|
||||
OS2Vendor: 'PfEd'
|
||||
OS2Vendor: 'LyEd'
|
||||
OS2CodePages: 00000001.00000000
|
||||
OS2UnicodeRanges: 00000001.00000000.00000000.00000000
|
||||
DEI: 91125
|
||||
|
Binary file not shown.
@ -50,7 +50,7 @@ OS2SupXOff: 0
|
||||
OS2SupYOff: 0
|
||||
OS2StrikeYSize: 102
|
||||
OS2StrikeYPos: 530
|
||||
OS2Vendor: 'PfEd'
|
||||
OS2Vendor: 'LyEd'
|
||||
OS2CodePages: 40000001.80d40000
|
||||
OS2UnicodeRanges: 00000003.00000000.00000000.00000000
|
||||
Lookup: 4 0 1 "'liga' Ligature standard in Latin lookup 0" {"'liga' Ligature standard in Latin lookup 0 subtable" } ['liga' ('latn' <'dflt' > ) ]
|
||||
|
Binary file not shown.
@ -50,6 +50,7 @@ OS2SupXOff: 0
|
||||
OS2SupYOff: 1239
|
||||
OS2StrikeYSize: 102
|
||||
OS2StrikeYPos: 530
|
||||
OS2Vendor: 'LyEd'
|
||||
OS2UnicodeRanges: 00000000.00000000.00000000.00000000
|
||||
MarkAttachClasses: 1
|
||||
DEI: 91125
|
||||
|
Binary file not shown.
@ -50,7 +50,7 @@ OS2SupXOff: 0
|
||||
OS2SupYOff: 0
|
||||
OS2StrikeYSize: 102
|
||||
OS2StrikeYPos: 530
|
||||
OS2Vendor: 'PfEd'
|
||||
OS2Vendor: 'LyEd'
|
||||
OS2CodePages: 00000001.00000000
|
||||
OS2UnicodeRanges: 00000000.00000000.00000000.00000000
|
||||
MarkAttachClasses: 1
|
||||
|
Binary file not shown.
@ -50,7 +50,7 @@ OS2SupXOff: 0
|
||||
OS2SupYOff: 721
|
||||
OS2StrikeYSize: 102
|
||||
OS2StrikeYPos: 530
|
||||
OS2Vendor: 'PfEd'
|
||||
OS2Vendor: 'LyEd'
|
||||
OS2CodePages: 00000001.00000000
|
||||
OS2UnicodeRanges: 00000000.00000000.00000000.00000000
|
||||
MarkAttachClasses: 1
|
||||
|
Binary file not shown.
@ -50,7 +50,7 @@ OS2SupXOff: -101
|
||||
OS2SupYOff: 490
|
||||
OS2StrikeYSize: 50
|
||||
OS2StrikeYPos: 264
|
||||
OS2Vendor: 'PfEd'
|
||||
OS2Vendor: 'LyEd'
|
||||
OS2CodePages: 00000001.00000000
|
||||
OS2UnicodeRanges: 80000001.00000000.00000000.00000000
|
||||
Lookup: 258 0 0 "'kern' Horizontal Kerning in Latin lookup 0" {"'kern' Horizontal Kerning in Latin lookup 0 subtable" } ['kern' ('latn' <'dflt' > ) ]
|
||||
|
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
SplineFontDB: 3.0
|
||||
SplineFontDB: 3.2
|
||||
FontName: stmary10
|
||||
FullName: stmary10
|
||||
FamilyName: stmary10
|
||||
@ -6,23 +6,30 @@ Weight: Roman
|
||||
Copyright: Copyright (c) Taco Hoekwater, 1998. All rights reserved.
|
||||
Version: 001.001
|
||||
ItalicAngle: 0
|
||||
UnderlinePosition: -102.4
|
||||
UnderlineWidth: 51.2
|
||||
UnderlinePosition: -102
|
||||
UnderlineWidth: 51
|
||||
Ascent: 819
|
||||
Descent: 205
|
||||
InvalidEm: 0
|
||||
LayerCount: 2
|
||||
Layer: 0 0 "Back" 1
|
||||
Layer: 1 0 "Zeichenebene" 0
|
||||
Layer: 0 0 "Back" 1
|
||||
Layer: 1 0 "Zeichenebene" 0
|
||||
FSType: 0
|
||||
OS2Version: 0
|
||||
OS2_WeightWidthSlopeOnly: 0
|
||||
OS2_UseTypoMetrics: 0
|
||||
CreationTime: 1302307949
|
||||
ModificationTime: 1421634721
|
||||
ModificationTime: 1599145907
|
||||
PfmFamily: 17
|
||||
TTFWeight: 400
|
||||
TTFWidth: 5
|
||||
LineGap: 92
|
||||
VLineGap: 0
|
||||
OS2TypoAscent: 0
|
||||
OS2TypoAOffset: 1
|
||||
OS2TypoDescent: 0
|
||||
OS2TypoDOffset: 1
|
||||
OS2TypoLinegap: 0
|
||||
OS2TypoLinegap: 92
|
||||
OS2WinAscent: 0
|
||||
OS2WinAOffset: 1
|
||||
OS2WinDescent: 0
|
||||
@ -31,17 +38,17 @@ HheadAscent: 0
|
||||
HheadAOffset: 1
|
||||
HheadDescent: 0
|
||||
HheadDOffset: 1
|
||||
OS2Vendor: 'PfEd'
|
||||
OS2Vendor: 'LyEd'
|
||||
MarkAttachClasses: 1
|
||||
DEI: 91125
|
||||
LangName: 1033 "" "" "LyX" "FontForge 2.0 : stmary10 : 17-7-2010"
|
||||
LangName: 1033 "" "" "LyX" "FontForge 2.0 : stmary10 : 17-7-2010"
|
||||
Encoding: UnicodeBmp
|
||||
UnicodeInterp: none
|
||||
NameList: Adobe Glyph List
|
||||
DisplaySize: -96
|
||||
AntiAlias: 1
|
||||
FitToEm: 1
|
||||
WinInfo: 0 8 2
|
||||
WinInfo: 64 8 2
|
||||
BeginPrivate: 0
|
||||
EndPrivate
|
||||
BeginChars: 65539 131
|
||||
|
Binary file not shown.
@ -50,7 +50,7 @@ OS2SupXOff: 0
|
||||
OS2SupYOff: 0
|
||||
OS2StrikeYSize: 51
|
||||
OS2StrikeYPos: 265
|
||||
OS2Vendor: 'PfEd'
|
||||
OS2Vendor: 'LyEd'
|
||||
OS2CodePages: 00000001.00000000
|
||||
OS2UnicodeRanges: 00000001.00000000.00000000.00000000
|
||||
MarkAttachClasses: 1
|
||||
|
Binary file not shown.
@ -189,7 +189,14 @@ QFont symbolFont(QString const & family, bool * ok)
|
||||
upper[0] = family[0].toUpper();
|
||||
|
||||
QFont font;
|
||||
#if defined Q_WS_X11 || defined(QPA_XCB)
|
||||
// On *nix we have to also specify the foundry to be able to
|
||||
// discriminate our fonts when the texlive fonts are managed by
|
||||
// fontconfig. Unfortunately, doing the same on Windows breaks things.
|
||||
font.setFamily(family + QLatin1String(" [LyEd]"));
|
||||
#else
|
||||
font.setFamily(family);
|
||||
#endif
|
||||
#if QT_VERSION >= 0x040800
|
||||
font.setStyleName("LyX");
|
||||
|
||||
|
@ -32,6 +32,8 @@ What's new
|
||||
|
||||
- Allow creation of a child file from the include dialog (bug 4475).
|
||||
|
||||
- Make sure to load the correct math fonts in certain cases.
|
||||
|
||||
|
||||
* MISCELLANEOUS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user