Open main menu

Changes

no edit summary
{| class="wikitable" style= How to use one of the provided fonts"margin:auto; width: 4 steps, 10 sec. =100%;"|-; #1. First, be aware of the [[ConTeXt distribution's Fonts! style="width: 50%"|21 fonts provided]].Tutorials (learning) ! style="width:* If required, you can [[Mtxrun#fonts50%"| regenerate the font database]] <code>mtxrun How-to guides (goals)|-script font |* [https://meeting.contextgarden.net/2021/talks/2021-09-reload -23/typescripts-force</code> ; #2presentation. Give a name to the set of pdf ''Handling fonts you want to use and select a first font:* Use the command {{cmd|definefontfamily}}. Sometimesin ConTEXt (2021)''] ConTEXt-Meeting 15th, the name of the set of font is called the "typescript identifier":* Let's take an example2021, for a Serif fontWilli Egger, for which TeX practice is to refer to them as '''roman''' (=rm)38 invaluable slides:* <texcode>\definefontfamily[MyFontIdentifier][rm][refcode to the serif font]<https://texcode> ; #3articles.contextgarden. Declare it as your default font family for your document:* Use the command with {{cmd|setupbodyfont}}:* <texcode>\setupbodyfont[MyFontIdentifier]<net/journal/2018/texcode> ; #483-94. Specify the font size:* pdf <texcodei>\setupbodyfont[xxpt]Font installation example: IBM Plex (2018)</texcodei>] by Taco Hoekwater and Pavneet Arora To learn how to use different alternative of a given font, like regular / bold / italic, see the [[Font_Switching]] in the [[Basics]].|
== Example ==* See below on this [[Fonts#How-to_guides|Fonts central page]]{{TwoColumnsUnderLevel1* [[:Category:Fonts | Wiki pages in Fonts category]]|-! Explanation (understanding) !! Reference (information)|-
|
Let see what give * [http://www.pragma-ade.nl/general/manuals/fonts-mkiv.pdf 2016 Fonts manual, all the defaultsdetails] for advanced users* [http:<//context.aanhet.net/svn/contextman/context source=yes>-reference/en/co-fonts.pdf the 2013 font chapter] as a separate document\setupbodyfont* [12pt]http://pmrb.free.fr/contextref.pdf#&#91;145,{The quick brown fox jumps over the lazy dog%22name%22:%22Fit%22}\\{\bf The quick brown fox jumps over &#93; 2013 reference manual] never officially released, with the lazy dog}\\{\it The quick brown fox jumps over the lazy dog}\\</context>2013 font chapter|And let's add the two lines, using Tex Gyre Pagella Serif font (refThe [[:texgyrepagella)Category:<context source=yes>\definefontfamily [MyFontIdentifierCommand/Fonts | commands in Fonts category] [rm] [texgyrepagella]\setupbodyfont[MyFontIdentifier]|-\setupbodyfont[12pt]{The quick brown fox jumps over the lazy dog}\\{\bf The quick brown fox jumps over the lazy dog}\\{\it The quick brown fox jumps over the lazy dog}\\</context>}|}
= How -to use more than one of the provided fonts: 1 step, 5 sec. guides =
; #1* '''[[Fonts/Use fonts distributed with ConTeXt| Use fonts distributed with ConTeXt]]'''** How to use the [[Fonts/ConTeXt distribution's Fonts|21 provided fonts]]. Very similarly ** These are the basics you may want to abovestart with, in 2 or 3 steps, just select a second fontless than 3 minutes.:* for a Sans Serif font, for which TeX practice is to refer to them as '''Sans Serif[[Fonts/Use_the_fonts_you_want| Use any other font ]]''' ** Case 1: Quick "one shot" (=ss< 5min.)** Case 2:Comprehensive approach (~10min.)* <texcode>\definefontfamily'''[[MyFontIdentifierFonts/Font Switching| "Font Switching", or "how-to use the different fonts within your document"][ss][refcode '''** how to the sans serif define font]<size, ** how to use alternative styles like regular / bold / italic /texcode>small caps:* for a * how to switch between serif, sans serif, monospaced font, for which TeX practice is or to refer another fonts with {{cmd|switchtobodyfont}}** how to them as underline, strike...* '''[[Visual_Debugging#Fonts_and_Type | Visual help and debugging]]''' for Fonts* '''[[Fonts/Featuresets|OpenType features]]''' for some common options for {{cmd|definefontfeature}} like:** '''[[Fonts/Ligatures|Ligatures]]'''** '''TypewriTer[[Fonts/Protrusion]]''' (=ttalso known as hanging or font handling):* <texcode>\definefontfamily'''[[MyFontIdentifierFonts/Typescripts examples|Typescripts examples]]'''* Technical details** [[ttFonts/Optical Size | How to set up a font family with optical size options]]** [[refcode to Fonts/Fontsize | What defines the monospaced size in a font]<] ('natural' size. 'design' size)** Get examples from [https://source.contextgarden.net/?search=s-fonts- s-fonts- files], that you can compile and/texcode>or use as module for own fonts (with lua font goodies)
== To tidy ==
== Example =={{TwoColumnsUnderLevel1|This basic input * Work is typeset with the default font, Latin Modern:<context source=yes>\setupbodyfontalso needed to merge content from [[12pt]{\rm The quick brown fox jumps over the lazy dog}\\{\rm\bf The quick brown fox jumps over the lazy dog}\\{\rm\it The quick brown fox jumps over the lazy dog}\\\\{\ss The quick brown fox jumps over the lazy dog}\\{\ss\bf The quick brown fox jumps over the lazy dog}\\{\ss\it The quick brown fox jumps over the lazy dog}\\\\{\tt The quick brown fox jumps over the lazy dog}\\{\tt\bf The quick brown fox jumps over the lazy dog}\\{\tt\it The quick brown fox jumps over the lazy dog}\\<Fonts/context>Fonts_in_LuaTeX|And by adding Fonts in LuaTeX]] in the two lines discussed pages above.* For older content, and using the reference refering to Tex Gyre Pagella Serif font (texgyrepagella) mkii, we obtain:<context source=yes>\definefontfamily keep a [MyFontIdentifier] [rmFonts - Old Content|specific zone in the wiki] [texgyrepagella]\definefontfamily [MyFontIdentifier] [ss] [texgyreadventor]\definefontfamily [MyFontIdentifier] [tt] [texgyrecursor]\setupbodyfont[MyFontIdentifier]\setupbodyfont[12pt]{\rm The quick brown fox jumps over the lazy dog}\\{\rm\bf The quick brown fox jumps over the lazy dog}\\{\rm\it The quick brown fox jumps over the lazy dog}\\\\{\ss The quick brown fox jumps over the lazy dog}\\{\ss\bf The quick brown fox jumps over the lazy dog}\\{\ss\it The quick brown fox jumps over the lazy dog}\\\\{\tt The quick brown fox jumps over the lazy dog}\\{\tt\bf The quick brown fox jumps over the lazy dog}\\{\tt\it The quick brown fox jumps over the lazy dog}\\</context>}}.
= How to use my new font =[[Category:Fonts]]
1,047

edits