Changes

Jump to navigation Jump to search
2,343 bytes added ,  22:38, 7 January 2020
some updates to this incomplete and outdated page
== Task ==
To map Use Roboto Slab on rm-fonts as roman, Roboto as sans and Robonto (Roboto Mono as, well, mono. Also provide normal and condensed) on ss-fontssans.
== Requirements ==
The Download the Roboto fonts are installed at your System from Google’s Github projects ([https://github.com/google/roboto/releases|Roboto Sans and also recognized by ConTeXtMono], [https://github.com/googlefonts/robotoslab/tree/master/fonts/static|Roboto Slab]), from [https://fonts.google.com/?query=Roboto|Google Fonts] or several other font pages. If
mtxrun Put the font files e.g. in <tt>texmf--script fonts --list --all --pattern=/fonts/truetype/google/roboto*</tt> and reload the font database:
does not shows you minimum: mtxrun --script fonts --reload
roboto robotoblack Roboto-Black.otf robotoblack robotoblack Roboto-Black.otf robotoblackitalic robotoblackitalic Roboto-BlackItalic.otf robotobold robotobold Roboto-Bold.otf robotobolditalic robotobolditalic Roboto-BoldItalic.otf robotocondensed robotocondensedbold RobotoCondensed-Bold.otf robotocondensedbold robotocondensedbold RobotoCondensed-Bold.otf robotocondensedbolditalic robotocondensedbolditalic RobotoCondensed-BoldItalic.otf robotocondenseditalic robotocondenseditalic RobotoCondensed-Italic.otf robotocondensedlight robotocondensedlight RobotoCondensed-Light.otf robotocondensedlightitalic robotocondensedlightitalic RobotoCondensed-LightItalic.otf robotocondensednormal robotocondenseditalic RobotoCondensed-Italic.otf robotocondensedregular robotocondensedregular RobotoCondensed-Regular.otf robotoitalic robotoitalic Roboto-Italic.otf robotolight robotolight Roboto-Light.otf robotolightitalic robotolightitalic Roboto-LightItalic.otf robotomedium robotomedium Roboto-Medium.otf robotomediumitalic robotomediumitalic Roboto-MediumItalic.otf robotonormal robotoitalic Roboto-Italic.otf robotoregular robotoregular Roboto-Regular.otf robotoslab robotoslabbold RobotoSlab-Bold.ttf robotoslabbold robotoslabbold RobotoSlab-Bold.ttf robotoslablight robotoslablight RobotoSlab-Light.ttf robotoslabnormal robotoslabregular RobotoSlab-Regular.ttf robotoslabregular robotoslabregular RobotoSlab-Regular.ttf robotoslabthin robotoslabthin RobotoSlab-Thin.ttf robotothin robotothin Roboto-Thin.otf robotothinitalic robotothinitalic Roboto-ThinItalic.otfCheck if ConTeXt can find them:
please visit the instruction [[Fonts_in_LuaTeX#Building_the_font_database|how to install mtxrun --script fonts to MkIV]].--list --all --pattern=robot
You can download the roboto fonts from google's webfonts and then convert them from woff into otf via fontforge.That should result in something like this:
You do not have to use this identifier familyname fontname filename subfont instances roboto roboto robotoregular Roboto-Regular.ttf robotoblack roboto robotoblack Roboto-Black.ttf robotoblackitalic roboto robotoblackitalic Roboto-BlackItalic.ttf robotobold roboto robotobold Roboto-Bold.ttf robotobolditalic roboto robotobolditalic Roboto-BoldItalic.ttf robotocondensed robotocondensed robotocondensedregular RobotoCondensed-Regular.ttf robotocondensedbold robotocondensed robotocondensedbold RobotoCondensed-Bold.ttf robotocondensedbolditalic robotocondensed robotocondensedbolditalic RobotoCondensed-BoldItalic.ttf robotocondenseditalic robotocondensed robotocondenseditalic RobotoCondensed-Italic.ttf robotocondensedlight robotocondensed robotocondensedlight RobotoCondensed-Light.ttf robotocondensedlightitalic robotocondensed robotocondensedlightitalic RobotoCondensed-LightItalic.ttf robotocondensednormal robotocondensed robotocondenseditalic RobotoCondensed-Italic.ttf robotocondensedregular robotocondensed robotocondensedregular RobotoCondensed-Regular.ttf robotoitalic roboto robotoitalic Roboto-Italic.ttf robotolight roboto robotolight Roboto-Light.ttf robotolightitalic roboto robotolightitalic Roboto-LightItalic.ttf robotomedium roboto robotomedium Roboto-Medium.ttf robotomediumitalic roboto robotomediumitalic Roboto-MediumItalic.ttf robotomono robotomono robotomonoregular RobotoMono-Regular.ttf robotomonobold robotomono robotomonobold RobotoMono-Bold.ttf robotomonobolditalic robotomono robotomonobolditalic RobotoMono-BoldItalic.ttf robotomonoitalic robotomono robotomonoitalic RobotoMono-Italic.ttf robotomonolight robotomono robotomonolight RobotoMono-Light.ttf robotomonolightitalic robotomono robotomonolightitalic RobotoMono-LightItalic.ttf robotomonomedium robotomono robotomonomedium RobotoMono-Medium.ttf robotomonomediumitalic robotomono robotomonomediumitalic RobotoMono-MediumItalic.ttf robotomononormal robotomono robotomonoitalic RobotoMono-Italic.ttf robotomonoregular robotomono robotomonoregular RobotoMono-Regular.ttf robotomonothin robotomono robotomonothin RobotoMono-Thin.ttf robotomonothinitalic robotomono robotomonothinitalic RobotoMono-ThinItalic.ttf robotonormal roboto robotoitalic Roboto-Italic.ttf robotoregular roboto robotoregular Roboto-Regular.ttf robotoslabblack robotoslab robotoslabblack RobotoSlab-Black.ttf robotoslabbold robotoslab robotoslabbold RobotoSlab-Bold.ttf robotoslabextrabold robotoslab robotoslabextrabold RobotoSlab-ExtraBold.ttf robotoslabextralight robotoslab robotoslabextralight RobotoSlab-ExtraLight.ttf robotoslablight robotoslab robotoslablight RobotoSlab-Light.ttf robotoslabmedium robotoslab robotoslabmedium RobotoSlab-Medium.ttf robotoslabnormal robotoslab robotoslabregular RobotoSlab-Regular.ttf robotoslabregular robotoslab robotoslabregular RobotoSlab-Regular.ttf robotoslabsemibold robotoslab robotoslabsemibold RobotoSlab-SemiBold.ttf robotoslabthin robotoslab robotoslabthin RobotoSlab-Thin.ttf robotothin roboto robotothin Roboto fonts-Thin. For this example you can use any Unicode font you likettf robotothinitalic roboto robotothinitalic Roboto-ThinItalic. If you use different fonts do not forget ttf  Now we need to exchange the font names in the example script belowwrite a typescript...(TODO)
== Problem ==
At this moment ConTeXt only offers two different font weights inside a typescript definition - roboto Roboto offers six different font weights. A typescript definiton definition also does not does’t know font variants and roboto sans Roboto Sans offers two (normal and condensed).
== Script Solution ==
Solution: you You need to pair the specific weight and variants you need want in your document.

Navigation menu