Changes

Jump to navigation Jump to search
17 bytes removed ,  09:26, 1 June 2020
}}
= Use Using a newly downloaded font (5 steps, 1 min.) =
Let's take a example, we want to use [https://fonts.google.com/specimen/Noto+Serif Noto Serif].The google website enable us to download a zip file with the 4 alternative styles:* Regular 400* Regular 400 italic* Bold 700* Bold 700 italic
; #1. Download :*The google website enable us to download a zip file with the 4 alternative styles::** Regular 400:** Regular 400 italic:** Bold 700:** Bold 700 italic ; #2. Store them is a dedicated folder
:* create a "Noto-serif" in the ConTeXt distribution <code>tex/texmf-fonts</code>.
:* unzip and store the .ttf file in <code>tex/texmf-fonts/Noto-serif/</code>.
; #32. Regenerate ConTeXt databases
:* the file database: <code>mtxrun --generate</code>
:* the fonts database: <code>mtxrun --script font --reload</code>
 ; #4. :* Check if the 4 files are correctly identified by ConTeXt now:::* <code>mtxrun --script font --list --file -pattern=*noto*</code>:: * which should gives:
<texcode>familyname weight style width variant fontname filename subfont fontweight
</texcode>
; #53. Your are done! You can use the font anywhere on in your input filefiles.
:* Use the commands {{cmd|\definedfont}}
<texcode>

Navigation menu