![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Hi, Some fonts have glyoh variants, e.g. latin modern has umlauts versions and alternative copyright symbols and such. The characteristics of those alternatives don't change, so we could pop them in using an special enc file, which is what i do now. However, in order to fully exploit this feature, we need some extension. Say that we use lmr10 two times, one time with the alternatives, and one time as-is. We need: - two tfm files (the same but a different name) - two mapping lines - one pfb file However, if we have \pdfsetfontenc\somefont{blabla.enc} we can do with - one tfm files (the same but a different name) - one mapping lines (the original) - one pfb file I can even imagine that we have \pdfsetfontfile\somefont{blabla.pfb} \pdfsetfontname\somefont{FunnyFontName} Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/ad5afbb91c8b5ec2b1199838461a8348.jpg?s=120&d=mm&r=g)
On Tue, 8 Feb 2005, Hans Hagen wrote:
However, if we have
\pdfsetfontenc\somefont{blabla.enc}
we can do with
- one tfm files (the same but a different name) - one mapping lines (the original) - one pfb file
I can even imagine that we have
\pdfsetfontfile\somefont{blabla.pfb}
or \pdfsetfontfile\somefont{< blabla.pfb}?
\pdfsetfontname\somefont{FunnyFontName}
more... \pdfsetfonttransform\somefont{0.9 ExtendFont 0.1 SlantFont} \pdfsetfontflag\somefont{5} All this only as long as the font is not yet in use, right? Another maybe more simple way would be some font aliasing mechanism, creating a "virtual" tfmname, e. g. \pdffonttfmalias{cmr10 hcmr10} (while no hcmr10.tfm exists), and then you can create a normal map line starting with hcmr10... Regards, Hartmut
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Hartmut Henkel wrote:
All this only as long as the font is not yet in use, right?
depends on what 'in use is', but i assume that it follows the same strategy as map lines, so 'as long as not yet frozen by usage' is ok -)
Another maybe more simple way would be some font aliasing mechanism, creating a "virtual" tfmname, e. g. \pdffonttfmalias{cmr10 hcmr10} (while no hcmr10.tfm exists), and then you can create a normal map line starting with hcmr10...
i've been thinking about that, but the problem is that it will overload all
usages of fonts since tex shares them, so
\font\a=cmr10 at 10pt \pdfsetfontenc\a{< one.enc}
\font\b=cmr10 at 10pt \pdfsetfontenc\b{< two.enc}
would indeed mean two different mapping for each instance; while an alias would
apply the enc to both instances (sorry, bit fuzzy explanation)
btw, aliasing could be a nice feature for other reasons, think of:
$someenc=blabla.enc
$someenc-bla1
![](https://secure.gravatar.com/avatar/ad5afbb91c8b5ec2b1199838461a8348.jpg?s=120&d=mm&r=g)
On Tue, 8 Feb 2005, Hans Hagen wrote:
Hartmut Henkel wrote:
Another maybe more simple way would be some font aliasing mechanism, creating a "virtual" tfmname, e. g. \pdffonttfmalias{cmr10 hcmr10} (while no hcmr10.tfm exists), and then you can create a normal map line starting with hcmr10...
i've been thinking about that, but the problem is that it will overload all usages of fonts since tex shares them, so
\font\a=cmr10 at 10pt \pdfsetfontenc\a{< one.enc} \font\b=cmr10 at 10pt \pdfsetfontenc\b{< two.enc}
yes, but it could be implemented without sharing like:
\pdfmapline{+ cmr10 CMR10 would indeed mean two different mapping for each instance; while an
alias would apply the enc to both instances (sorry, bit fuzzy
explanation) i thought it would be just another independent tfmname, aliased to cmr10
only for tfm/vf read. TeX wouldn't notice at all (but i don't have any
preference what to implement/if time :-) btw, aliasing could be a nice feature for other reasons, think of: but then, it can be done with macros and pdfmapline already, so i
decided not to ask for it -) yes, only what can't be done by macros :-)
Regards, Hartmut
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Hartmut Henkel wrote:
yes, but it could be implemented without sharing like:
\pdfmapline{+ cmr10 CMR10
ok, that could work (and is a useful feature too) but in y case it would mean
that i'd have to use different font definitions, so i'd gain nothing; actually i
want to avoid new font definitions:
\def\SetFont#1{\font#1=cmr10 at 10pt}
\SetFont\a
\SetFont\b
\pdfsetenc\b{ i thought it would be just another independent tfmname, aliased to cmr10
only for tfm/vf read. TeX wouldn't notice at all (but i don't have any
preference what to implement/if time :-) sure, but it should be a bit of a challenge for you -) yes, only what can't be done by macros :-) indeed,
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Hartmut Henkel