ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Adjusting overbar for a special font
@ 2014-04-01 13:23 "H. Özoguz"
  0 siblings, 0 replies; 5+ messages in thread
From: "H. Özoguz" @ 2014-04-01 13:23 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 321 bytes --]

> as 'ex' is bad font that font, you can try 'em' :
>
> \setupbars[overbar][offset=1.2,unit=em,rulethickness=.05]

Thanks Hans, that worked quite well. Not perfect independent from the 
size, as you can see in the attached image, but perfect enough for my 
case, as the sizes differ not soo much (only 1-2pt).



Huseyin

[-- Attachment #1.2.1: Type: text/html, Size: 962 bytes --]

[-- Attachment #1.2.2: hhhhijbh.png --]
[-- Type: image/png, Size: 55077 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Adjusting overbar for a special font
  2014-04-01 10:12 ` "H. Özoguz"
@ 2014-04-01 11:31   ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2014-04-01 11:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Adjusting overbar for a special font
       [not found] <mailman.1.1396346401.23273.ntg-context@ntg.nl>
@ 2014-04-01 10:12 ` "H. Özoguz"
  2014-04-01 11:31   ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: "H. Özoguz" @ 2014-04-01 10:12 UTC (permalink / raw)
  To: ntg-context

> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Adjusting overbar for a special font
  2014-04-01  9:37 "H. Özoguz"
@ 2014-04-01  9:47 ` Wolfgang Schuster
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2014-04-01  9:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 01.04.2014 um 11:37 schrieb H. Özoguz <h.oezoguz@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Adjusting overbar for a special font
@ 2014-04-01  9:37 "H. Özoguz"
  2014-04-01  9:47 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: "H. Özoguz" @ 2014-04-01  9:37 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 1257 bytes --]

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

[-- Attachment #2: overbar.pdf --]
[-- Type: application/download, Size: 29695 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-04-01 13:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-01 13:23 Adjusting overbar for a special font "H. Özoguz"
     [not found] <mailman.1.1396346401.23273.ntg-context@ntg.nl>
2014-04-01 10:12 ` "H. Özoguz"
2014-04-01 11:31   ` Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2014-04-01  9:37 "H. Özoguz"
2014-04-01  9:47 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).