Added Adobe Source Pro fonts to lyx-GUI

This commit is contained in:
Kornel Benko 2018-10-02 11:28:46 +02:00
parent 4eb5ac9a2c
commit 6d0f7fc98d
3 changed files with 27 additions and 0 deletions

View File

@ -461,6 +461,9 @@
\TestPackage{plex-serif}
\TestPackage{plex-sans}
\TestPackage{plex-mono}
\TestPackage{sourceserifpro}
\TestPackage{sourcesanspro}
\TestPackage{sourcecodepro}
\TestFont[zgmr8r]{garamondx-fonts}
\TestPackage{iwona}
\TestPackage{kurier}

View File

@ -199,6 +199,12 @@ Font IBMPlexSerifSemibold
PackageOption semibold
EndFont
Font ADOBESourceSerifPro
GuiName "Adobe Source Serif Pro"
Family rm
Package sourceserifpro
EndFont
Font garamondx
GuiName "URW Garamond"
Family rm
@ -635,6 +641,14 @@ Font IBMPlexSansSemibold
ScaleOption scale=$$val
EndFont
Font ADOBESourceSansPro
GuiName "Adobe Source Sans Pro"
Family sf
Package sourcesanspro
PackageOption osf
ScaleOption scaled=$$val
EndFont
Font helvet
GuiName "Helvetica"
Family sf
@ -819,6 +833,13 @@ Font IBMPlexMonoSemibold
PackageOption semibold
EndFont
Font ADOBESourceCodePro
GuiName "Adobe Source Code Pro"
Family tt
Package sourcecodepro
ScaleOption scaled=$$val
EndFont
Font libertine-mono
GuiName "Libertine Mono"
Family tt

View File

@ -151,6 +151,9 @@ def createFontMapping():
'IBMPlexMonoExtraLight,extralight', 'IBMPlexMonoLight,light',
'IBMPlexMonoSemibold,semibold'],
"typewriter", "tt", "plex-mono", "scale")
fm.expandFontMapping(['ADOBESourceSerifPro'], "roman", None, "sourceserifpro")
fm.expandFontMapping(['ADOBESourceSansPro'], "sans", "sf", "sourcesanspro", "scaled")
fm.expandFontMapping(['ADOBESourceCodePro'], "typewriter", "tt", "sourcecodepro", "scaled")
return fm
def convert_fonts(document, fm):