ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: jdh via ntg-context <ntg-context@ntg.nl>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Cc: jdh <dhenman@gmail.com>
Subject: Re: font problems
Date: Fri, 26 Nov 2021 21:28:39 +4000	[thread overview]
Message-ID: <20211126212839.4689@sachi> (raw)
In-Reply-To: Your message of Fri, 26 Nov 2021 13:30:02 +0100 <a689a93f-783d-9aed-91d3-aa40cdae3c56@xs4all.nl>


Hans,
   thanks you for the solution to my font problem.  I appreciate it.

I'm trying to understand the definefont command you used and it seems that the arguments 'sa 1' in the macro is a size indication somewhat similar to 'at 10pt' but uses a relative size parameter as opposed to the absolute pt value.   That the numeric argument after 'sa'  is a multiple of the current font size. 

Thank you
---------

Hans Hagen via ntg-context <ntg-context@ntg.nl> wrote:

> On 11/26/2021 12:59 PM, jdh via ntg-context wrote:
> > Here's my MWE:
> >         Objective is to typeset a Chancery font text in the upper lefthand side of a page, and
> >         then do the main body in some normal font.  Then at the very last print a sign off in
> >         Chancery.  For some reason I can't get both to print out as Chancery. Only one or the
> >         other, but not both.
> > 
> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> > \definefontfamily [mwetest] [sans] [Liberation Sans]
> > \setupbodyfont [mwe,ss,12pt]
> > \definelayer[mwe][repeat=yes, preset=lefttop, hoffset=.125in,
> > voffset=.125in]
> > \setlayer[mwe]   {  \switchtobodyfont[chancery,8pt] \hskip 5mm Chancery Font Here  }	
> > \setupbackgrounds[page][background=mwe]
> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> > \starttext
> > Normal font text goes here. \blank[4*big]
> >   { \switchtobodyfont[chancery] This should be Chancery here to.
> > But isn't. }
> > \blank[2*big]Note that if I comment out the \type{setlayer[mwe]} in
> > the source file, then the above will print in Chancery.
> > \stoptext
> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> > 
> > I'd like to have the layers in Chancery font and then one last text string in the body in Chancery font.  But I can't get them both to be Chancery.  How can that be done?
> chancery is not really a full bodyfont
> 
> \definefont[MyChancery][texgyrechorus-mediumitalic*default sa 1]
> \definefont[MyChanceryBold][texgyrechorus-mediumitalic*default,boldened-20
> sa 1]
> 
> {\MyChancery     test}
> {\MyChanceryBold test}
> 
> 
> 
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2021-11-25  5:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-26 11:59 jdh via ntg-context
2021-11-26 12:30 ` Hans Hagen via ntg-context
2021-11-25  5:28   ` jdh via ntg-context [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-05-02 14:19 Font problems John Culleton
2015-05-02 18:05 ` Pablo Rodriguez
2013-05-31 13:24 "H. Özoguz"
2013-05-31 14:19 ` Idris Samawi Hamid ادريس   سماوي حامد
2013-05-31 14:32 ` Idris Samawi Hamid ادريس   سماوي حامد
2013-05-31 11:52 "H. Özoguz"
2013-05-31 12:22 ` Khaled Hosny
     [not found] <3.0.5.32.20010820195552.00859200@mail.northcoast.com>
     [not found] ` <5.1.0.14.1.20010821101947.0341a320@server-1>
2001-08-21 17:48   ` David Arnold

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=20211126212839.4689@sachi \
    --to=ntg-context@ntg.nl \
    --cc=dhenman@gmail.com \
    /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).