Package newcent
EndFont
+Font NotoSerifRegular
+ GuiName "Noto Serif Regular"
+ Family rm
+ Package noto-serif
+ PackageOption regular
+ OsfDefault 0
+ OsfOption osf
+EndFont
+
+Font NotoSerifMedium
+ GuiName "Noto Serif Medium"
+ Family rm
+ Package noto-serif
+ PackageOption medium
+ OsfDefault 0
+ OsfOption osf
+EndFont
+
+Font NotoSerifThin
+ GuiName "Noto Serif Thin"
+ Family rm
+ Package noto-serif
+ PackageOption thin
+ OsfDefault 0
+ OsfOption osf
+EndFont
+
+Font NotoSerifLight
+ GuiName "Noto Serif Light"
+ Family rm
+ Package noto-serif
+ PackageOption light
+ OsfDefault 0
+ OsfOption osf
+EndFont
+
+Font NotoSerifExtralight
+ GuiName "Noto Serif Extralight"
+ Family rm
+ Package noto-serif
+ PackageOption extralight
+ OsfDefault 0
+ OsfOption osf
+EndFont
+
Font NotoSerif-TLF
GuiName "Noto Serif"
Family rm
Requires lmodern
EndFont
+Font NotoSansRegular
+ GuiName "Noto Sans Regular"
+ Family sf
+ ScaleOption scaled=$$val
+ Package noto-sans
+ OsfDefault 0
+ OsfOption osf
+EndFont
+
+Font NotoSansMedium
+ GuiName "Noto Sans Medium"
+ Family sf
+ ScaleOption scaled=$$val
+ Package noto-sans
+ OsfDefault 0
+ OsfOption osf
+EndFont
+
+Font NotoSansThin
+ GuiName "Noto Sans Thin"
+ Family sf
+ ScaleOption scaled=$$val
+ Package noto-sans
+ PackageOption thin
+ OsfDefault 0
+ OsfOption osf
+EndFont
+
+Font NotoSansLight
+ GuiName "Noto Sans Light"
+ Family sf
+ ScaleOption scaled=$$val
+ Package noto-sans
+ PackageOption light
+ OsfDefault 0
+ OsfOption osf
+EndFont
+
+Font NotoSansExtralight
+ GuiName "Noto Sans Extralight"
+ Family sf
+ ScaleOption scaled=$$val
+ Package noto-sans
+ PackageOption extralight
+ OsfDefault 0
+ OsfOption osf
+EndFont
+
Font NotoSans-TLF
GuiName "Noto Sans"
Family sf
Package luximono
EndFont
+Font NotoMonoRegular
+ GuiName "Noto Mono Regular"
+ Family tt
+ ScaleOption scaled=$$val
+ Package noto-mono
+ PackageOption regular
+EndFont
+
Font NotoMono-TLF
GuiName "Noto Mono"
Family tt
fm.expandFontMapping(['ADOBESourceSerifPro'], "roman", None, "sourceserifpro")
fm.expandFontMapping(['ADOBESourceSansPro'], "sans", "sf", "sourcesanspro", "scaled")
fm.expandFontMapping(['ADOBESourceCodePro'], "typewriter", "tt", "sourcecodepro", "scaled")
+ elif font == 'Noto':
+ fm.expandFontMapping(['NotoSerifRegular,regular', 'NotoSerifMedium,medium',
+ 'NotoSerifThin,thin', 'NotoSerifLight,light',
+ 'NotoSerifExtralight,extralight'],
+ "roman", None, "noto-serif")
+ fm.expandFontMapping(['NotoSansRegular,regular', 'NotoSansMedium,medium',
+ 'NotoSansThin,thin', 'NotoSansLight,light',
+ 'NotoSansExtralight,extralight'],
+ "sans", "sf", "noto-sans", "scaled")
+ fm.expandFontMapping(['NotoMonoRegular'], "typewriter", "tt", "noto-mono", "scaled")
return fm
def convert_fonts(document, fm):
###
###############################################################################
+def convert_notoFonts(document):
+ " Handle Noto fonts definition to LaTeX "
+
+ if find_token(document.header, "\\use_non_tex_fonts false", 0) != -1:
+ fm = createFontMapping(['Noto'])
+ convert_fonts(document, fm)
+
+def revert_notoFonts(document):
+ " Revert native Noto font definition to LaTeX "
+
+ if find_token(document.header, "\\use_non_tex_fonts false", 0) != -1:
+ fontmap = dict()
+ fm = createFontMapping(['Noto'])
+ revert_fonts(document, fm, fontmap)
+ add_preamble_fonts(document, fontmap)
+
def convert_latexFonts(document):
" Handle DejaVu and IBMPlex fonts definition to LaTeX "
[568, []],
[569, []],
[570, []],
- [571, []]
+ [571, []],
+ [572, [convert_notoFonts]] # Added options thin, light, extralight for Noto
]
revert = [
+ [571, [revert_notoFonts]],
[570, [revert_cmidruletrimming]],
[569, [revert_bibfileencodings]],
[568, [revert_tablestyle]],