Joost Verburg schrieb:

Good. Now the question is: can we do something about that from the LyX side? Joost? Uwe?

> The official installer does not install the BaKoMa in the Windows fonts 
directory. The fonts are
> located in Resources\fonts.

The same as for LyXWinInstaller.

It looks like Scientific Workplace installs different fonts with the same name in the Windows fonts directory. These seem to override the local fonts in the LyX resources directory.

I think the fix is simple: Rename the fonts to LyX-cmex10 etc. and modify LyX to use these fonts on Windows.

I opened bug 3962 for this issue and set it to critical as this should be done before LyX 1.5.0 comes out. Attached the patch that does this. As far as I tested it works. OK to apply?

regards Uwe
Index: development/scons/scons_manifest.py
===================================================================
--- development/scons/scons_manifest.py	(revision 18942)
+++ development/scons/scons_manifest.py	(working copy)
@@ -1521,14 +1521,14 @@
 lib_fonts_files = Split('''
     BaKoMaFontLicense.txt
     ReadmeBaKoMa4LyX.txt
-    cmex10.ttf
-    cmmi10.ttf
-    cmr10.ttf
-    cmsy10.ttf
-    eufm10.ttf
-    msam10.ttf
-    msbm10.ttf
-    wasy10.ttf
+    cmex10-lyx.ttf
+    cmmi10-lyx.ttf
+    cmr10-lyx.ttf
+    cmsy10-lyx.ttf
+    eufm10-lyx.ttf
+    msam10-lyx.ttf
+    msbm10-lyx.ttf
+    wasy10-lyx.ttf
 ''')
 
 
Index: lib/fonts/BaKoMaFontLicense.txt
===================================================================
--- lib/fonts/BaKoMaFontLicense.txt	(revision 18942)
+++ lib/fonts/BaKoMaFontLicense.txt	(working copy)
@@ -23,13 +23,13 @@
       The changes made are simple remappings of glyphs. These mappings
       are:
 
-      cmsy10.ttf   char 8728 mapped to char 183 (\leq)
-      cmsy10.ttf   char  196 mapped to char 127 (\spadesuit)
-      msbm10.ttf   char 8728 mapped to char 183 (\nleqq)
-      msbm10.ttf   char  196 mapped to char 127 (\backepsilon)
-      cmmi10.ttf   char 8728 mapped to char 183 (\kapp)
-      msam10.ttf   char  196 mapped to char 127 (\circleddash)
-      msam10.ttf   char 8728 mapped to char 183 (\uparrows)
+      cmsy10-lyx.ttf   char 8728 mapped to char 183 (\leq)
+      cmsy10-lyx.ttf   char  196 mapped to char 127 (\spadesuit)
+      msbm10-lyx.ttf   char 8728 mapped to char 183 (\nleqq)
+      msbm10-lyx.ttf   char  196 mapped to char 127 (\backepsilon)
+      cmmi10-lyx.ttf   char 8728 mapped to char 183 (\kapp)
+      msam10-lyx.ttf   char  196 mapped to char 127 (\circleddash)
+      msam10-lyx.ttf   char 8728 mapped to char 183 (\uparrows)
       
        
       The mappings do not change any glyph but make the glyphs mentioned 
Index: lib/fonts/cmex10.ttf
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: lib/fonts/cmmi10.ttf
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: lib/fonts/cmr10.ttf
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: lib/fonts/cmsy10.ttf
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: lib/fonts/eufm10.ttf
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: lib/fonts/msam10.ttf
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: lib/fonts/msbm10.ttf
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: lib/fonts/ReadmeBaKoMa4LyX.txt
===================================================================
--- lib/fonts/ReadmeBaKoMa4LyX.txt	(revision 18942)
+++ lib/fonts/ReadmeBaKoMa4LyX.txt	(working copy)
@@ -30,13 +30,13 @@
       The changes made are simple remappings of glyphs. These mappings
       are:
 
-      cmsy10.ttf   char 8728 mapped to char 183 (\leq)
-      cmsy10.ttf   char  196 mapped to char 127 (\spadesuit)
-      msbm10.ttf   char 8728 mapped to char 183 (\nleqq)
-      msbm10.ttf   char  196 mapped to char 127 (\backepsilon)
-      cmmi10.ttf   char 8728 mapped to char 183 (\kapp)
-      msam10.ttf   char  196 mapped to char 127 (\circleddash)
-      msam10.ttf   char 8728 mapped to char 183 (\uparrows)
+      cmsy10-lyx.ttf   char 8728 mapped to char 183 (\leq)
+      cmsy10-lyx.ttf   char  196 mapped to char 127 (\spadesuit)
+      msbm10-lyx.ttf   char 8728 mapped to char 183 (\nleqq)
+      msbm10-lyx.ttf   char  196 mapped to char 127 (\backepsilon)
+      cmmi10-lyx.ttf   char 8728 mapped to char 183 (\kapp)
+      msam10-lyx.ttf   char  196 mapped to char 127 (\circleddash)
+      msam10-lyx.ttf   char 8728 mapped to char 183 (\uparrows)
       
        
       The mappings do not change any glyph but make the glyphs mentioned 
Index: lib/fonts/wasy10.ttf
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: lib/Makefile.am
===================================================================
--- lib/Makefile.am	(revision 18942)
+++ lib/Makefile.am	(working copy)
@@ -224,15 +224,15 @@
 fontsdir = $(pkgdatadir)/fonts
 dist_fonts_DATA = \
 	fonts/BaKoMaFontLicense.txt \
-	fonts/cmex10.ttf \
-	fonts/cmmi10.ttf \
-	fonts/cmr10.ttf \
-	fonts/cmsy10.ttf \
-	fonts/eufm10.ttf \
-	fonts/msam10.ttf \
-	fonts/msbm10.ttf \
+	fonts/cmex10-lyx.ttf \
+	fonts/cmmi10-lyx.ttf \
+	fonts/cmr10-lyx.ttf \
+	fonts/cmsy10-lyx.ttf \
+	fonts/eufm10-lyx.ttf \
+	fonts/msam10-lyx.ttf \
+	fonts/msbm10-lyx.ttf \
 	fonts/ReadmeBaKoMa4LyX.txt \
-	fonts/wasy10.ttf
+	fonts/wasy10-lyx.ttf
 
 imagesdir = $(pkgdatadir)/images
 dist_images_DATA = \

Reply via email to