Hi, I'd like to type set a single hindi/devanagari word in a chapter heading (using standalone MkVI), where I need your help for some questions/problems: - which (free) font do you suggest ? right now I'm using "Lohit-Devanagari". text font is 11pt Palatino, Lohit doesn't match too good, and a bold version would be nice for the chapter head. - font size: how do I define this font to get automatic/matching font sizes for both the chapter head and the title of contents ? right now I use \definefont [hindib] [Lohit-Devanagari at 24pt] ... \mychapter{Danke -- {\hindib धन्यवाद}} which gives a reaosonable font size for the chapter title, but of course that's way too large for the TOC:-( what's the right way to define a "scalable" single font (or two, if you have a suggestion for a normal+bold devanagari font) in ConTeXt ? thanks, Harald -- "I hope to die ___ _____ before I *have* to use Microsoft Word.", 0--,| /OOOOOOO\ Donald E. Knuth, 02-Oct-2001 in Tuebingen. <_/ / /OOOOOOOOOOO\ \ \/OOOOOOOOOOOOOOO\ \ OOOOOOOOOOOOOOOOO|// \/\/\/\/\/\/\/\/\/ Harald Koenig // / \\ \ koenig@tat.physik.uni-tuebingen.de ^^^^^ ^^^^^
Am 08.04.2015 um 23:47 schrieb Harald Koenig
: Hi,
I'd like to type set a single hindi/devanagari word in a chapter heading (using standalone MkVI), where I need your help for some questions/problems:
- which (free) font do you suggest ? right now I'm using "Lohit-Devanagari". text font is 11pt Palatino, Lohit doesn't match too good, and a bold version would be nice for the chapter head.
- font size: how do I define this font to get automatic/matching font sizes for both the chapter head and the title of contents ?
right now I use
\definefont [hindib] [Lohit-Devanagari at 24pt] ... \mychapter{Danke -- {\hindib धन्यवाद}}
which gives a reaosonable font size for the chapter title, but of course that's way too large for the TOC:-(
what's the right way to define a "scalable" single font (or two, if you have a suggestion for a normal+bold devanagari font) in ConTeXt ?
You can use the fallback mechanism to use a different font for characters which aren’t available in the main font. \definefallbackfamily [mainface] [rm] [Devanagari MT] [range=devanagari,scale=1.2] \definefontfamily [mainface] [rm] [TeX Gyre Pagella] \definefontfamily [mainface] [mm] [TeX Gyre Pagella Math] \setupbodyfont[mainface] \starttext Danke – धन्यवाद \stoptext Wolfgang
On Apr 09, Wolfgang Schuster wrote:
You can use the fallback mechanism to use a different font for characters which aren’t available in the main font.
\definefallbackfamily [mainface] [rm] [Devanagari MT] [range=devanagari,scale=1.2] \definefontfamily [mainface] [rm] [TeX Gyre Pagella]
\definefontfamily [mainface] [mm] [TeX Gyre Pagella Math]
\setupbodyfont[mainface]
\starttext Danke – धन्यवाद \stoptext
doesn't work for me -- the indien glyphs don't show up:-( I'll attch my test, log and my current font... Harald -- "I hope to die ___ _____ before I *have* to use Microsoft Word.", 0--,| /OOOOOOO\ Donald E. Knuth, 02-Oct-2001 in Tuebingen. <_/ / /OOOOOOOOOOO\ \ \/OOOOOOOOOOOOOOO\ \ OOOOOOOOOOOOOOOOO|// \/\/\/\/\/\/\/\/\/ Harald Koenig // / \\ \ koenig@tat.physik.uni-tuebingen.de ^^^^^ ^^^^^
Am 10.04.2015 um 08:43 schrieb Harald Koenig
: On Apr 09, Wolfgang Schuster wrote:
You can use the fallback mechanism to use a different font for characters which aren’t available in the main font.
\definefallbackfamily [mainface] [rm] [Devanagari MT] [range=devanagari,scale=1.2] \definefontfamily [mainface] [rm] [TeX Gyre Pagella]
\definefontfamily [mainface] [mm] [TeX Gyre Pagella Math]
\setupbodyfont[mainface]
\starttext Danke – धन्यवाद \stoptext
doesn't work for me -- the indien glyphs don't show up:-(
You forgot the “range” setting for the fallback font which tells context which glyphs should be taken from the font. \definefallbackfamily [mainface] [rm] [Lohit Devanagari] [range=devanagari,scale=1.2] \definefontfamily [mainface] [rm] [TeX Gyre Pagella] \definefontfamily [mainface] [mm] [TeX Gyre Pagella Math] \setupbodyfont[mainface] \starttext Danke – धन्यवाद \stoptext Wolfgang
On Apr 10, Wolfgang Schuster wrote:
You forgot the “range” setting for the fallback font which tells context which glyphs should be taken from the font.
opps sorry! I only removed the "range" after my first attempt didn't succeed... now it's working fine, but only after copying the font to "tex/texmf-local/fonts/truetype/" and running "context --generate". thanks!!! for my first naiive approach with \definefont it was ok/sufficient to keep the TTF file in the local project's directory. why is not true for your \definefallbackfamily solution ? thanks again!! Harald -- "I hope to die ___ _____ before I *have* to use Microsoft Word.", 0--,| /OOOOOOO\ Donald E. Knuth, 02-Oct-2001 in Tuebingen. <_/ / /OOOOOOOOOOO\ \ \/OOOOOOOOOOOOOOO\ \ OOOOOOOOOOOOOOOOO|// \/\/\/\/\/\/\/\/\/ Harald Koenig // / \\ \ koenig@tat.physik.uni-tuebingen.de ^^^^^ ^^^^^
On 04/08/2015 11:47 PM, Harald Koenig wrote:
Hi,
I'd like to type set a single hindi/devanagari word in a chapter heading (using standalone MkVI), where I need your help for some questions/problems:
- which (free) font do you suggest ? right now I'm using "Lohit-Devanagari". text font is 11pt Palatino, Lohit doesn't match too good, and a bold version would be nice for the chapter head.
Hi Harald, as an alternative to the font proposed by Wolfgang (seems to be only available for Mac), FreeSerif may be an option (https://ftp.gnu.org/gnu/freefont/). I hope it helps, Pablo -- http://www.ousia.tk
participants (3)
-
Harald Koenig
-
Pablo Rodriguez
-
Wolfgang Schuster