ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: Converting normal font into bold
Date: Tue, 26 Nov 2013 09:45:14 +0100	[thread overview]
Message-ID: <52945F9A.7040101@wxs.nl> (raw)
In-Reply-To: <5292314F.40608@mmnetz.de>

On 11/24/2013 6:03 PM, "H. Özoguz" wrote:
>>
>> >>/  May be ConTeXt experts would have better suggestions, till then you
>> />>/  may want to look at the fake bold option in simplefonts -
>> />>/  http://wiki.contextgarden.net/Simplefonts#Faking_italics_and_bold_fonts
>> />/
>> />/  Thanks for your advice.
>> />/  Unfortunately I did not manish to work with this font by simplefonts. I use the following simple setup:
>> />/
>> />/
>> />/  \definefont[arabic][file:bliblablup_0.ttf*arabic  at 15pt]
>> /
>> \definefontfeature[fakebold][extend=1.1]
>>
>> \definefont[arabic][file:<fontname>*arabic,fakebold at 15pt]
>>
>> >/  \starttext
>> />/  \arabic\setupalign[r2l] ٱللَّهُ لَآ إِلَـٰهَ إِلَّا هُوَ ٱلْحَىُّ ٱلْقَيُّومُ
>> />/  \stoptext
>> />/
>> />/  How can I get these "fake bolds" with this setup? Or is it absolutely necessary to use Simplefont for these fake-bolds?
>> /
>> The feature is unrelated to simplefonts.
>>
>> Wolfgang
>
> Thanks Wolfgang, but that does not seem to work with this font. See
> attachment, the font is wider, but not bold. See the difference to the
> intended result, achieved with Corel Draw (with the same font), see
> attachment.
>
> In ConTeXt I had the following code (see attachment for the compiled pdf):
>
> ++++++++++++++++
> \definefont[arabic][file:bliblablup_0.ttf*arabic at 15pt]
> \definefont[arabics][file:bliblablup_0.ttf*arabic at 15pt]
> \definefontfeature[fakebold][extend=1.2]
> \definefont[arabic][file:bliblablup_0.ttf*arabic,fakebold at 15pt]
>
> \starttext
> \arabic\setupalign[r2l]
> ٱللَّهُ لَآ إِلَـٰهَ إِلَّا هُوَ ٱلْحَىُّ ٱلْقَيُّومُ
> \blank\arabics\setupalign[r2l]
> ٱللَّهُ لَآ إِلَـٰهَ إِلَّا هُوَ ٱلْحَىُّ ٱلْقَيُّومُ
> \stoptext
> ++++++++++++++++

it all depends on how they implement it but for a feature rich opentype 
font extend will not work out well unless on also scales up the internal 
font properties (and i'm not sure if that would work out well with for 
instance cursive features)

anyhow, as it's probably uses for a rare cases you can try

\setupbodyfont[dejavu]

\defineeffect [thicker] [alternative=both,rulethickness=0.3pt]

\starttext
     test \starteffect[thicker]test\stopeffect
\stoptext

these pseudo slant and bold definition tricks are an inheritance from 
pdftex and therefore in luatex ... we'd never introduced them otherwise 
as one should use proper bold fonts (or nothing)

Hans

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

  reply	other threads:[~2013-11-26  8:45 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-24 17:03 "H. Özoguz"
2013-11-26  8:45 ` Hans Hagen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-11-25 11:20 "H. Özoguz"
2013-11-24 23:34 "H. Özoguz"
2013-11-25 10:29 ` Hans Hagen
2013-11-24 22:33 "H. Özoguz"
2013-11-25 10:33 ` Hans Hagen
2013-11-24 21:18 "H. Özoguz"
2013-11-24 22:02 ` Ondřej Hošek
2013-11-25 10:40 ` Khaled Hosny
2013-11-24 19:53 "H. Özoguz"
2013-11-24 21:04 ` Khaled Hosny
2013-11-24 17:52 "H. Özoguz"
2013-11-24 17:56 ` Khaled Hosny
2013-11-24 17:12 "H. Özoguz"
2013-11-24 17:27 ` Wolfgang Schuster
2013-11-24 14:32 "H. Özoguz"
2013-11-24 14:57 ` Wolfgang Schuster
2013-11-24 13:01 "H. Özoguz"
2013-11-24 13:28 ` Rajeesh K Nambiar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52945F9A.7040101@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).