[NTG-context] Adjusting overbar for a special font

2014-04-01 Thread H. Özoguz

Hello there,

I tried to overbar an arabic word, and noticed, that the bar is too low 
and overlaps the letters. While producing a minexample, I noticed that 
this might be a issue of my font, because this does not happen with 
Arial. See this minexample:


\definefont[arial][name:arial*arabic at 12pt]
\definefont[arabicuth][file:UthmanicHafs1Ver09.ttf*arabic at 12pt]

\starttext
\startalign[r2l]
\arial
كَلَّا لَا تُطِعْهُ \overbar{وَٱسْجُدْ} وَٱقْتَرِب ۩
\arabicuth
كَلَّا لَا تُطِعْهُ \overbar{وَٱسْجُدْ} وَٱقْتَرِب ۩
\stopalign
\stoptext

and compare the compiled pdf in attachment.

You can download the used font-file UthmanicHafs1Ver09.ttf here:

http://fonts.qurancomplex.gov.sa/download/UthmanicHafs1Ver09Font.zip

We have discussed this font here month ago, hans commented: yes, but 
calling this a normal font is somewhat over-the-top


So it is quite special - but still best available font (free or 
commercial) for typesetting the holy quran.


But setting the bar a bit higher should be easily possible, independent 
of these font-lacks, right? The solution should be independent from the 
chosen font-size.


Thanks!
Huseyin


overbar.pdf
Description: application/download
___
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] Adjusting overbar for a special font

2014-04-01 Thread Wolfgang Schuster

Am 01.04.2014 um 11:37 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Hello there,
 
 I tried to overbar an arabic word, and noticed, that the bar is too low and 
 overlaps the letters. While producing a minexample, I noticed that this might 
 be a issue of my font, because this does not happen with Arial. See this 
 minexample:
 
 \definefont[arial][name:arial*arabic at 12pt]
 \definefont[arabicuth][file:UthmanicHafs1Ver09.ttf*arabic at 12pt]
 
 \starttext
 \startalign[r2l]
 \arial
 كَلَّا لَا تُطِعْهُ \overbar{وَٱسْجُدْ} وَٱقْتَرِب ۩
 \arabicuth
 كَلَّا لَا تُطِعْهُ \overbar{وَٱسْجُدْ} وَٱقْتَرِب ۩
 \stopalign
 \stoptext
 
 and compare the compiled pdf in attachment.
 
 You can download the used font-file UthmanicHafs1Ver09.ttf here:
 
 http://fonts.qurancomplex.gov.sa/download/UthmanicHafs1Ver09Font.zip
 
 We have discussed this font here month ago, hans commented: yes, but calling 
 this a normal font is somewhat over-the-top
 
 So it is quite special - but still best available font (free or commercial) 
 for typesetting the holy quran.
 
 But setting the bar a bit higher should be easily possible, independent of 
 these font-lacks, right? The solution should be independent from the chosen 
 font-size.

http://www.ntg.nl/pipermail/ntg-context/2012/070738.html

Wolfgang
___
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] Adjusting overbar for a special font

2014-04-01 Thread H. Özoguz

http://www.ntg.nl/pipermail/ntg-context/2012/070738.html

Wolfgang



Thanks Wolfgang, but this solution is not independent from the size of 
the font, and so had to be adjust for each size again (bad for my 
project, where the font-size changes on nearly every page).


Which unit has this offset?
\setupbars[overbar][offset=3]

I tried the font-independent unit em
\setupbars[overbar][offset=3em]

but that does not work.

Huseyin
___
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] Adjusting overbar for a special font

2014-04-01 Thread Hans Hagen

On 4/1/2014 12:12 PM, H. Özoguz wrote:

http://www.ntg.nl/pipermail/ntg-context/2012/070738.html

Wolfgang



Thanks Wolfgang, but this solution is not independent from the size of
the font, and so had to be adjust for each size again (bad for my
project, where the font-size changes on nearly every page).

Which unit has this offset?
\setupbars[overbar][offset=3]

I tried the font-independent unit em
\setupbars[overbar][offset=3em]

but that does not work.


as 'ex' is bad font that font, you can try 'em' :

\setupbars[overbar][offset=1.2,unit=em,rulethickness=.05]

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___