Re: [NTG-context] (hindi) font questions

2015-04-13 Thread Harald Koenig
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--,|/OOO\
Donald E. Knuth, 02-Oct-2001 in Tuebingen._/  /  /OOO\
\  \/OOO\
  \ O|//
   \/\/\/\/\/\/\/\/\/
Harald Koenig   //  / \\  \
koe...@tat.physik.uni-tuebingen.de ^   ^
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] (hindi) font questions

2015-04-09 Thread Pablo Rodriguez
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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] (hindi) font questions

2015-04-09 Thread Wolfgang Schuster

 Am 08.04.2015 um 23:47 schrieb Harald Koenig 
 koe...@tat.physik.uni-tuebingen.de:
 
 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


test.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] (hindi) font questions

2015-04-08 Thread 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 ?
  

thanks,

Harald
-- 
I hope to die  ___   _
before I *have* to use Microsoft Word.,   0--,|/OOO\
Donald E. Knuth, 02-Oct-2001 in Tuebingen._/  /  /OOO\
\  \/OOO\
  \ O|//
   \/\/\/\/\/\/\/\/\/
Harald Koenig   //  / \\  \
koe...@tat.physik.uni-tuebingen.de ^   ^
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___