ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Mojca Miklavec" <mojca.miklavec.lists@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Change the font to Charter
Date: Sat, 10 Jan 2009 10:09:01 +0100	[thread overview]
Message-ID: <6faad9f00901100109r58595f39l1e785219f7d553b6@mail.gmail.com> (raw)
In-Reply-To: <loom.20090110T034456-297@post.gmane.org>

Hello "Curious",

> I have been using Latex for sometime and am thinking of switching to Context for
> at least some types of documents and hence have been trying it out. I love the
> charter font and tried to use the following commands to use the Charter font
>
> \definetypeface [charter] [rm] [serif] [charter] [default] [encoding=ec]
> \switchtotypeface [charter] [12pt,rm]
>
> However, when I compile the file with texexec I get the following warning:
>
> pdfTeX warning: pdftex (file ec-bitstrea-charter.map): cannot open font map file
>
> Can someone please help me fix this problem? I get the charter font output,
> however, the results are different from what I get with Latex. The letters seem
> more spread out and there seems to be more spacing between the words in the
> Context output. Could this be because of the above warning?

You are right that some things need to be fixed in ConTeXt - if
nothing else, the map file could be removed from type-one and
type.map. (Do not bother if you don't understand what I have written -
it's targeted to ConTeXt gurus. Any opinions?)

The file is missing, but all the needed definitions are inside
ec-base.map (I guess, I don't find ec-bitstrea-charter.map anywhere in
order to compare):

bchb8t  CharterBT-Bold           <ec.enc <bchb8a.pfb
bchbi8t CharterBT-BoldItalic     <ec.enc <bchbi8a.pfb
bchr8t  CharterBT-Roman          <ec.enc <bchr8a.pfb
bchri8t CharterBT-Italic         <ec.enc <bchri8a.pfb

bchbo8t CharterBT-Bold           ".167 SlantFont" <ec.enc <bchb8a.pfb
bchro8t CharterBT-Roman          ".167 SlantFont" <ec.enc <bchr8a.pfb

There are these files present on TeX Live (they are not in minimals):

/usr/local/texlive/2008/texmf-dist/fonts/tfm/bitstrea/charter/bchr8t.tfm
/usr/local/texlive/2008/texmf-dist/fonts/vf/bitstrea/charter/bchr8t.vf

But when I compare to LaTeX with the following code
    \usepackage[T1]{fontenc}
    \usepackage[charter]{mathdesign}
it uses other font metric files:
    /usr/local/texlive/2008/texmf-dist/tex/latex/mathdesign/mdbch/t1mdbch.fd
...
\DeclareFontShape{T1}{mdbch}{m}{n}{
   <->s * [0.96]  mdbchr8t
}{}
...
    /usr/local/texlive/2008/texmf-dist/fonts/tfm/mathdesign/mdbch/mdbchr8t.tfm

I suspect that one might need to fix or improve typescripts. Do you
have some visual examples to show the differences? It would be
interesting to compare the differences between bchr8t and mdbchr8t and
change typescripts if needed.

Moreover, math support would have to be added to typescripts - it
could be based on mathdesign.

Mojca
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2009-01-10  9:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-10  3:59 Curious
2009-01-10  9:09 ` Mojca Miklavec [this message]
2009-01-10 12:33   ` Curious
2009-01-10 13:52     ` Wolfgang Schuster
2009-01-10 15:16       ` Curious
2009-01-10 15:42       ` Aditya Mahajan
2009-01-13 18:10     ` Mojca Miklavec
2009-01-11 19:54   ` Hans Hagen
2009-01-11 20:14     ` 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=6faad9f00901100109r58595f39l1e785219f7d553b6@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --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).