Changes

Jump to navigation Jump to search
no edit summary
== Usage of the blocks in ConTeXt ==
A typical use of Unicode blocks is in the definition of fallbacks for '''fallback''' fonts that do not have the necessary to provide glyphsfor certain characters. Sometimes, when writing a document in ConTeXt, one needs to typeset special symbols that are not available in the base font of the document. A '''In such a situation, one can specify a fallback''' font is one that provides to provide these missing symbols. Another use of fallback fonts arises when one wants to replace the glyphs for some characters in the base font with glyphs for those characters from another font. In such a case, the latter font can be specified as a fallback font. <context source=yes>\definefallbackfamily [mainface] [serif] [DejaVu Serif] [range=cyrillic,force=yes] \definefontfamily [mainface] [serif] [TeX Gyre Pagella] \setupbodyfont [mainface] \starttext  \startlines’Twas brillig, and the slithy tovesDid gyre and gimble in the wabe;All mimsy were the borogoves,And the mome raths outgrabe.\stoplines \rightaligned{--- Lewis Caroll, Jabberwocky}  \startlinesВаркалось. Хливкие шорькиПырялись по наве,И хрюкотали зелюки,Как мюмзики в мове. \stoplines \rightaligned {--- Дина Григорьевна Орловская, Бармаглот} \stoptext</context>
51

edits

Navigation menu