ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* typescripts
@ 2010-11-12 14:32 Herbert Voss
  2010-11-12 16:29 ` typescripts Herbert Voss
  2010-11-12 16:57 ` typescripts Hans Hagen
  0 siblings, 2 replies; 28+ messages in thread
From: Herbert Voss @ 2010-11-12 14:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I am still playing with typescripts...
In this example I get sans serif and mono
but for the roman libertine I get the lm mono. What
is wrong?

Herbert


name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
QNOYJG+LMMonoProp10-Regular          Type 1            yes yes no      18  0
IGFPZR+LinBiolinumO                  CID Type 0C       yes yes yes     19  0
JNFQZG+BeraSansMono-Roman            CID Type 0C       yes yes yes     20  0




\setuppagenumbering[location={}]
\starttypescriptcollection[mylibertine]

\starttypescript[serif][libertine][name]
    \definefontsynonym [Serif]           [name:linlibertineo]
[features=default]
    \definefontsynonym [SerifItalic]     [name:linlibertineoi]
[features=default]
    \definefontsynonym [SerifBold]       [name:linlibertineob]
[features=default]
    \definefontsynonym [SerifBoldItalic]
[name:linlibertineobi][features=default]
    \definefontsynonym [SerifSlanted]    [name:linlibertineoi]
[features=default]
    \definefontsynonym
[SerifSlantedBold][name:linlibertineobi][features=default]
%    \definefontsynonym [SerifCaps]       [name:linlibertineoc]
[features=SmallCaps]
\stoptypescript

\starttypescript[sans][biolinum][name]
    \definefontsynonym [Sans]           [name:linbiolinumo]
[features=default]
    \definefontsynonym [SansItalic]     [name:linbiolinumoi]
[features=default]
    \definefontsynonym [SansBold]       [name:linbiolinumob]
[features=default]
    \definefontsynonym [SansSlanted]    [name:linbiolinumosl]
[features=default]
\stoptypescript
\starttypescript[mono][bera][name]
    \definefontsynonym [Mono] [file:fvmr8a.afm]
\stoptypescript

\starttypescript[mylibertine]
   \definetypeface[mylibertine][rm][serif][libertine][default]
   \definetypeface[mylibertine][ss][sans] [biolinum] [default]
   \definetypeface[mylibertine][tt][mono] [bera]     [default][rscale=0.85]
   \definetypeface[mylibertine][mm][math] [modern]   [default]
\stoptypescript
\stoptypescriptcollection

\starttext
\setupbodyfont[mylibertine,12pt,rm]
foo bar baz

\ss
foo bar baz

\tt
foo bar baz

%\showbodyfont
\stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 28+ messages in thread
* typescripts
@ 2010-11-10 18:57 Herbert Voss
  2010-11-10 20:28 ` typescripts Mojca Miklavec
  0 siblings, 1 reply; 28+ messages in thread
From: Herbert Voss @ 2010-11-10 18:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I played with typescripts and have a problem.

I can use the beramono font in this way:

\definefont [Bera] [fvmr8a at 9.5pt]

\starttext
\Bera
\input knuth
\stoptext

but how would I insert it into a typescript of libertine,
where the mono font should used from bera?
This did not work:

...
\starttypescript[libertine]
    \definetypeface[libertine][rm][serif][libertine][default]
    \definetypeface[libertine][ss][sans] [libertine][default]
    \definetypeface[libertine][tt][mono] [file:fvmr8a.pfb]
[default][rscale=0.85]
    \definetypeface[libertine][mm][math] [modern]   [default]
\stoptypescript
...

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


^ permalink raw reply	[flat|nested] 28+ messages in thread
* typescripts
@ 2010-03-18 20:42 Michael Saunders
  0 siblings, 0 replies; 28+ messages in thread
From: Michael Saunders @ 2010-03-18 20:42 UTC (permalink / raw)
  To: ntg-context

I'm trying to follow the examples and getting surprising results:

\definefontfeature[default][mode=node,language=dflt,script=latn,kern=yes,liga=yes,tlig=yes,trep=yes]

\definefontfeature[body][default][onum=yes,pnum=yes,protrusion=quality,expansion=quality]
\definefontfeature[smallcaps][body][smcp=yes, onum=yes]
%I understood this to mean that "body" would inherit "default" and
"smallcaps" would inherit "body".

\starttypescript [sans] [gillLT]
   \definefontsynonym[Gill-Light][name:gillsansmtprolight][features=body]
   \definefontsynonym[Gill-Light-Italic][name:gillsansmtprolightitalic][features=body]
\stoptypescript

\starttypescript [sans] [gillLT]
   \definefontsynonym[Sans][Gill-Light][features=body]
   \definefontsynonym[SansItalic][Gill-Light-Italic][features=body]
\stoptypescript

\starttypescript [gill]
   \definetypeface [gillLT] [ss] [sans] [gillLT] [default]
[features=body,script=latn,script=grek]
\stoptypescript

\setupalign[hanging,hz]
\setupbodyfont[gillLT,12pt]

\ss


1:    1234567890 fi fl ffi ffl    \addff{smallcaps} test smallcaps
2:    \addff{body} 1234567890 fi fl ffi ffl    \addff{smallcaps} test smallcaps

In both 1 & 2, ligatures and small caps fail (though the glyphs are in
the font).
In 1, oldstyle fails.
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 28+ messages in thread
* typescripts
@ 2010-03-18  1:32 Michael Saunders
  2010-03-18  9:53 ` typescripts Wolfgang Schuster
  2010-03-18 10:04 ` typescripts Wolfgang Schuster
  0 siblings, 2 replies; 28+ messages in thread
From: Michael Saunders @ 2010-03-18  1:32 UTC (permalink / raw)
  To: ntg-context

Wolfgang Schuster:

> do you need all of your fonts at the same time in your document?

Most of the time, one serif and one sans.  I'd be happy to get these
installed.  Of course, High quality fonts often come in large sets.
The varying weights turn up most often in the variations between
different kinds of heads, occasionally in other things.  Variations in
optical size occur more frequently, besides in heads, in things like
quotations, footnotes, and captions.  Smallcaps (and sometimes,
all-caps environments) often turn up in headers.  It's nice to be able
to switch easily between roman/italic and other things within
environments like that---it's very nice if things like shape, weight
and so on can be switched independently.  It's also very nice if
optical design sizes switch automatically with the current size.

Consider, for example, something like this:  a book on film with a header:
"Fellini's Roma and 8 1/2".  I'm used to setting something like this
in this way:
Fellini's \it{Roma} and \it{\cvfrac{8}{1}{2}}
(where \cvfrac{}{}{} is a macro that gives me a compound vulgar fraction).
The header is itself in smallcaps, so what comes out is:
Fellini's <small caps>
Roma <italic small caps>
and <small caps>
8 <italic proportional lining> (italic and lining (i.e., uppercase)
because it's a title)
1/2 <italic numerator><italic><italic denominator>
all with minimal effort on the part of the writer.  It seems natural that way.

> Do you plan to switch between oldstyle and lining figures each sentence?

I've certainly done that before, with lining for quantities and
oldstyle for everything else (mostly chapter and page numbers).  Of
course, other sorts of numerals turn up a lot too---the numerator and
denominator variants for fractions, the superiors for footnotemarks
and ordinals, and occasionally inferiors as well.

> Do you need condensed and regular width together in the running text
> or do you want one in the text and the other in the header?

The different widths of my sans is one thing I hadn't counted on using
much (I spend more time in serif) but, since I have the fonts, I
thought it would be nice to be able to use them.  More than the
specific uses I've mentioned above, I'm used to the freedom of being
able to use what I have when the need arises.

> ConTeXt is not a DTP program and has a completely different concept.

I'm aware of that.  I've been using LaTeX for fifteen years now.  I
keep hearing about Context and the work with Luatex and I want to try
it out to see whether I can get higher quality.  Loading and switching
fonts is just the first hurdle.  If it's too difficult to do this in
Context, that's okay.  I realize that it's a work in progress and
these things may be improved someday.  I just want to get as much
working as I can right now so I can try out more things.  I have two
fonts to install.  I've been at it for two weeks.  I realize it might
take a few more weeks and a lot of work.  I know it's not as easy as
dropping them in a folder.  That's okay.  I'll keep at it.

> Before we can give you better answers think about what do want
> to achieve and where do you need a certain font feature and style,
> when you have a clear picture about this ty to describe it and we
> try to help you.
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 28+ messages in thread
* typescripts
@ 2010-03-17 12:16 Michael Saunders
  2010-03-17 12:34 ` typescripts Wolfgang Schuster
  2010-03-18  0:04 ` typescripts Wolfgang Schuster
  0 siblings, 2 replies; 28+ messages in thread
From: Michael Saunders @ 2010-03-17 12:16 UTC (permalink / raw)
  To: ntg-context

Wolfgang Schuster:


> You can apply only *one* feature to \definefontfeatures.

I've seen examples like this:
\definefontfeature
 [fea]
 [mode=node,language=dflt,script=arab,
  init=yes,medi=yes,fina=yes,isol=yes,
  liga=yes,dlig=yes,rlig=yes,tlig=yes,
  calt=yes,trep=yes,mark=yes,mkmk=yes,
  kern=yes,curs=yes]
so I think you mean to say that I can apply only one feature to
\definefontsynonym or to \definetypeface.  I tried this and it
checks out.  Thanks---it's nice to see hz working.  Protrusion is
only on the right margin?

> > 2. As far as I can tell from trying to decode examples, there is some
> > hidden connection between the first arguments of the second typescript
> > block and the font switches.  So, for example, a secret connection
> > between SerifBoldItalic and \bi seems to connect Junicode-BoldItalic
> > to \bi.  Fine, but, in all the examples I've seen, there are no more
> > than two weights and no widths.  In some cases, I have five weights
> > (light, book, medium, semi-bold, bold).  How do I set up the
> > typescript for this and the switches in the text?  Must I learn more
> > pairs like (SerifBoldItalic, \bi)?

You need more typefaces. One for light, another one for condensed etc.



------------------------------

Mojca Miklavec:

>> Must I learn more pairs like (SerifBoldItalic, \bi)?

> Yes, but there are not many (tf, it, sl, bf, bi, bs, sc) and I assume
> that they are extensible. See also below.

> > You need more typefaces. One for light, another one for condensed etc.

> Maybe I'm wrong, but shouldn't it be possible (I didn't test) to
> modify font-unk.mkiv and add a few extra definitions to the following?
> (Maybe not modify font-unk itself, but just adding a couple of more
> definitons to the typescript.)
>
> \definebodyfont [default] [rm]
>  [tf=Serif sa 1,
>   bf=SerifBold sa 1,
>   it=SerifItalic sa 1,
>   sl=SerifSlanted sa 1,
>   bi=SerifBoldItalic sa 1,
>   bs=SerifBoldSlanted sa 1,
>   sc=SerifCaps sa 1]
>
> You could add your
>  in=SerifYourFontVariantName sa 1,
>  bd=SerifYourOtherFontVariantName sa 1,
>
> And then
>   \definefontsynonym[SerifYourFontVariantName][YourFontName]

> It's true that most people don't do that, but I see no reason for not
> extending the model for your particular needs.

Mojca


------------------------------

Wolfgang Schuster:

> The last time i did this you needed for MkIV also
>
> \definefontalternative[in]
> \definefontalternative[bd]
>
> but be carefull with the shortcuts, \in is already used (references).



Thank you both.  I want to begin experimenting with this, but there's
one thing that still confuses me.  If I have a font with say, forty different
combinations of weight/width/shape (5x4x2), I will need to come up with
forty different pairs like:
myNewFontSwitch=SerifMyFontVariantName sa 1,
a strain on the poetic imagination, but possible.
It would be nicer though, if I could change weight/width/shape independently
of each other (then I need have only 5+4+2 switches).  For example, when
I see something like:
\rm\tf roman \it italic \bf bold
resulting in:
<book roman> <book italic> <bold roman>,
it's surprising to see that \bf has turned off the italic---you don't
expect a switch
of the weight to have a hidden switch of the shape in it.  Could the typescript
be set up with fewer switches, so that:
\rm\tf roman \it italic \bf bold
would result in:
<book roman> <book italic> <bold italic>,
or, e.g.,
\rm\tf (regular book roman) \cd (condensed) \it (italic) \bf (bold)
would result in:
<regular book roman> <condensed book roman> <condensed book italic>
<condensed bold italic>?



(Also, I'm hoping that having a dozen different sets of font features won't
require twelve times as many switches and feature names as this.  I think
there is some easier method for switching---Hans mentioned \addff{}, but
I can't find anything in the docs.  If that works, that would make two kinds
of switches, one for some kinds of features and another for other kinds.)
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 28+ messages in thread
* typescripts
@ 2010-03-17  1:26 Michael Saunders
  2010-03-17  8:20 ` typescripts Wolfgang Schuster
  0 siblings, 1 reply; 28+ messages in thread
From: Michael Saunders @ 2010-03-17  1:26 UTC (permalink / raw)
  To: ntg-context

I have been earnestly trying to understand how they work by attempting
a slightly more complex one.

So far, I have:

-------------------------------------------------------
\definefontfeature[default][mode=node,language=dflt,script=latn,kern=yes,liga=yes,tlig=yes,trep=yes]
\definefontfeature[body][onum=yes,pnum=yes,protrusion=quality,expansion=quality]%turn
hz on
%plus some I hope to use later
\definefontfeature[tabular][sans=yes,tnum=yes,onum=yes]%turn hz off
\definefontfeature[allcaps][cpsp=yes,case=yes,lnum=yes]
\definefontfeature[smallcaps][smcp, onum=yes]
\definefontfeature[swashes][swsh=yes]
\definefontfeature[inferior][sinf=yes]
\definefontfeature[superior][sups, ordn=yes]
\definefontfeature[numerator][numr=yes]
\definefontfeature[denominator][dnom=yes]
\definefontfeature[prop-os][pnum=yes,onum=yes]
\definefontfeature[prop-lin][pnum=yes,lnum=yes]
\definefontfeature[tab-os][tnum=yes,onum=yes]
\definefontfeature[tab-lin][tnum=yes,lnum=yes]
\definefontfeature[ornaments][ornm=yes]
\definefontfeature[lgc][script=latn,script=grek,script=cyrl]

\starttypescript [serif] [junicode]
   \definefontsynonym[Junicode][name:junicode][features=default,features=body,features=lgc]
   \definefontsynonym[Junicode-Bold][name:junicodebold][features=default,features=body,features=lgc]
   \definefontsynonym[Junicode-Italic][name:junicodeitalic][features=default,features=body,features=lgc]
   \definefontsynonym[Junicode-BoldItalic][name:junicodebolditalic][features=default,features=body,features=lgc]
\stoptypescript

\starttypescript [serif] [junicode]
   \definefontsynonym[Serif][Junicode][features=default,features=body,features=lgc]
   \definefontsynonym[SerifBold][Junicode-Bold][features=default,features=body,features=lgc]
   \definefontsynonym[SerifItalic][Junicode-Italic][features=default,features=body,features=lgc]
   \definefontsynonym[SerifBoldItalic][Junicode-BoldItalic][features=default,features=body,features=lgc]
\stoptypescript

\starttypescript [junicode]
   \definetypeface [junicode] [rm] [serif] [junicode] [default]
[features=default,features=body,features=lgc,features=hanging,features=hz]
\stoptypescript

\setupalign[hanging,hz]
\setupbodyfont[junicode,12pt]
-------------------------------------------------------------------------

but,

1. tlig and trep aren't working, so evidently, features=default isn't
getting through.  No hanging or hz is happening either---probably the
same problem.

2. As far as I can tell from trying to decode examples, there is some
hidden connection between the first arguments of the second typescript
block and the font switches.  So, for example, a secret connection
between SerifBoldItalic and \bi seems to connect Junicode-BoldItalic
to \bi.  Fine, but, in all the examples I've seen, there are no more
than two weights and no widths.  In some cases, I have five weights
(light, book, medium, semi-bold, bold).  How do I set up the
typescript for this and the switches in the text?  Must I learn more
pairs like (SerifBoldItalic, \bi)?
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 28+ messages in thread
* typescripts
@ 2003-08-16 20:05 Henning Hraban Ramm
  0 siblings, 0 replies; 28+ messages in thread
From: Henning Hraban Ramm @ 2003-08-16 20:05 UTC (permalink / raw)


Hello together!

My typescripts are now online:
http://www.fiee.net/texnique/?menu=0-1-3&lang=en
or directly:
http://www.ramm.ch/fiee/texnique/material/typescripts.zip

The archive contains only typescript files, no AFMs, PFBs,
TFMs, VFs, MAPs or the like.
Put them in texmf(-var|-local|...)/tex/context/user
or in your project directory.

Install the fonts with texfont (or with my also contained
install-font.pl that calls texfont and does some other
nasty work, but it's not very sophisticated, and you must
edit the hardcoded TeXRoot yourself -- I know I should
use kpsewhich, but...).
All file names are supposed lowercase! (I had much
problems with uppercase font names.)

The archive contains typescripts for the huge (but not
so beautiful) font families of URW with their spread
from extra narrow to extra wide, and some other for
ITC, Adobe and Linotype fonts.

I tried to map all fonts to something reachable, e.g.
if a family contained no italics, I mapped the next
bolder font onto italics.

Enjoy!
Grüßlis vom Hraban!
-- 
http://www.fiee.net/texnique/

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2010-11-12 20:39 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-12 14:32 typescripts Herbert Voss
2010-11-12 16:29 ` typescripts Herbert Voss
2010-11-12 16:54   ` typescripts Hans Hagen
2010-11-12 16:57 ` typescripts Hans Hagen
2010-11-12 17:41   ` typescripts Herbert Voss
2010-11-12 17:46     ` typescripts Hans Hagen
     [not found]       ` <4CDD80A7.7040803@FU-Berlin.DE>
     [not found]         ` <4CDD8246.2020206@wxs.nl>
2010-11-12 20:39           ` typescripts Herbert Voss
  -- strict thread matches above, loose matches on Subject: below --
2010-11-10 18:57 typescripts Herbert Voss
2010-11-10 20:28 ` typescripts Mojca Miklavec
2010-11-10 21:14   ` typescripts Herbert Voss
2010-11-11  5:20   ` typescripts Wolfgang Schuster
2010-11-11 11:03     ` typescripts Mojca Miklavec
2010-11-11 11:27       ` typescripts Hans Hagen
2010-11-11 14:15         ` typescripts Mojca Miklavec
2010-03-18 20:42 typescripts Michael Saunders
2010-03-18  1:32 typescripts Michael Saunders
2010-03-18  9:53 ` typescripts Wolfgang Schuster
2010-03-18 10:04 ` typescripts Wolfgang Schuster
2010-03-17 12:16 typescripts Michael Saunders
2010-03-17 12:34 ` typescripts Wolfgang Schuster
2010-03-18  0:04 ` typescripts Wolfgang Schuster
2010-03-17  1:26 typescripts Michael Saunders
2010-03-17  8:20 ` typescripts Wolfgang Schuster
2010-03-17  9:04   ` typescripts Mojca Miklavec
2010-03-17  9:11     ` typescripts Wolfgang Schuster
2010-03-17 11:33       ` typescripts Mojca Miklavec
2010-03-17 12:12         ` typescripts Wolfgang Schuster
2003-08-16 20:05 typescripts Henning Hraban Ramm

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).