ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otso Helenius <context@pi-xi.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Font selection problem in MKIV
Date: Sat, 21 May 2011 21:21:33 +0300	[thread overview]
Message-ID: <20110521182133.GA13647@innsmouth.lan> (raw)
In-Reply-To: <3E9D70E9-BB0B-4FDE-B66D-EB6FFF480634@googlemail.com>

On Sat, May 21, 2011 at 07:31:24PM +0200, Wolfgang Schuster wrote:

Thank You for clarification on the subject. Though, I still have a few problems for which I haven't found an answer for.

\setuppapersize[A4][A4]
\starttypescript[Sans][LeagueScript]
\definefontsynonym[Sans][name:leaguescriptthin]
\stoptypescript
\starttypescript[Sans][Pompadour]
\definefontsynonym[Sans][name:pompadourblack]
\stoptypescript

\definetypeface[LeagueScript][ss][Sans][LeagueScript]
\definetypeface[Pompadour][ss][Sans][Pompadour]
\setupbodyfont[LeagueScript,14pt]

\starttext
\LeagueScript 01234567890
\Pompadour 01234567890
\stoptext

This source works as expected, but if I:

a) comment out the \setupbodyfont command or switch [LeagueScript, 14pt) into [modern, 14pt] (or anything else than LeagueScript or
Pompadour), all fonts will show up as Latin Modern. This seems very odd.

b) specify a font size less than 13pt in \setupbodyfont, all fonts will (again) show up as Latin Modern. It seems that nowhere in the
document I'm able to use these "external" fonts in small sizes. There is no problem with sizes >= 14pt. This seems to happen with all
ttf/otf fonts I try to use.

Could it be possible that these two issues are caused by a bug in MKIV?

> Indeed, Hans explains in his manuals sometimes too much which can
> confuse a beginner because these information aren’t necessary to
> use a certain mechanism, e.g. to load a font.

Actually, the biggest problem is that many font related pages on the Wiki are for MKII and many lack information on whether the syntax
is for MKII or MKIV. The font docs on Pragma homepages are for MKII only. 

Syntax for the \switchtotypeface would be nice. showfont.pdf from Pragma homepage shows \switchtotypeface[name][size,type] as one
possible calling syntax but a clear explanation of all the parameters is missing. I would like to add this to the Wiki along other
tutorials for MKIV font usage, so as much information on the subject as possible is appreciated.



Thanks again,
Otso Helenius
___________________________________________________________________________________
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:[~2011-05-21 18:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-21 15:31 Otso Helenius
2011-05-21 17:31 ` Wolfgang Schuster
2011-05-21 18:21   ` Otso Helenius [this message]
2011-05-22  7:22     ` Wolfgang Schuster
2011-05-21 20:03   ` Otso Helenius
2011-05-22  7:25     ` Wolfgang Schuster
  -- strict thread matches above, loose matches on Subject: below --
2011-05-21 14:38 Otso Helenius
2011-05-21 14:50 ` Wolfgang Schuster

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=20110521182133.GA13647@innsmouth.lan \
    --to=context@pi-xi.net \
    --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).