ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: ConTeXt and expert fonts
@ 2002-08-09  2:09 Bruce D'Arcus
  2002-08-09  9:17 ` Jens-Uwe Morawski
  0 siblings, 1 reply; 11+ messages in thread
From: Bruce D'Arcus @ 2002-08-09  2:09 UTC (permalink / raw)
  Cc: ntg-context

Hans Hagen wrote:
>At 12:48 PM 8/7/2002 -0400, Bruce D'Arcus wrote:
>>I want to set up a font (like Minion, or in this case Hoefler Text) for
>>use in the following way:
>>
>>For all tables    monospaced figures (osf or lining)
>>For all headings and page numbers   proportional lining
>>text  osf
>>footnote markers  superiors
>
>no big deal once i understand what osf oand/or lining is -)

Lining=capital figures, OSF=old-style figures

>>SO my basic question is: how do I do this?  I have tried to set up a
>>"SerifFootnote" fontsynonym (which is to access a specially-encoded
>>"footnote" font), but no matter how I try to access it, I get an
>>"unknown variant" error.
>
>can you make a minimal sample document

This is the latest example that doesn't work (though I tried many 
variations that I don't remember):

First, added following to font map file:

\definefontsynonym [SerifFootnote][ehtr18f][encoding=T1,handling=pure]

The preamble code:

\setupbodyfont[HoeflerText,serif]
\setupfootnotes[style={\switchtobodyfont[SerifFootnote]}]
\starttext
Test.\footnote{A footnote.}
\stoptext

So what piece of the puzzle am I missing?

Bruce


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: ConTeXt and expert fonts
@ 2002-08-15 22:02 Bruce D'Arcus
  0 siblings, 0 replies; 11+ messages in thread
From: Bruce D'Arcus @ 2002-08-15 22:02 UTC (permalink / raw)
  Cc: Jens-Uwe Morawski, ConTeXt

Hans Hagen wrote:

>At 11:50 AM 8/14/2002 -0400, Bruce D'Arcus wrote:
>
>>Can I please get an answer to this?  I'm happy if someone can tell me
>>how to get the footnote font working, after which I'm pretty sure I can
>>figure out the rest.  I know I'm doing something wrong with defining
>>the font, but just don't understand what...
>
>can you be a bit more specific? for instance there is no t1 vector in 
>context (ec, texnansi, ..)

According to Jens-Uwe, T1 in LaTeX is ec in ConTeXt.  I assume ConTeXt 
defaults to ec, so that's why my having T1 works also?

My issue is basically how do I set up these new fonts (the Footnote and 
MonoSpacedLining, for example) so ConTeXt understands the synonyms when 
I use them in a command?

>also, if you prepare a minimal set of files to test .... (so that i 
don't 
>have to rekey) ...

Sure, but am not sure what kind of sample would be relevant (since you 
don't have the font files themselves).  In the first note in the 
thread, I gave the setupfootnotedefinition command I used.  Is that 
what you mean?Just let me know and I'll send it!

>setting up the footnotes is no problem (bodyfont key)

Right. My problem is I get an "unknown variant" when I do so, but don't 
understand why...

Also, is there a font command that would only apply a font to the body 
text itself (and footnote and caption text), and not to things like 
headings?

Bruce


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: ConTeXt and expert fonts
@ 2002-08-14 15:50 Bruce D'Arcus
  2002-08-15 16:09 ` Hans Hagen
  0 siblings, 1 reply; 11+ messages in thread
From: Bruce D'Arcus @ 2002-08-14 15:50 UTC (permalink / raw)
  Cc: Jens-Uwe Morawski, ConTeXt

Can I please get an answer to this?  I'm happy if someone can tell me 
how to get the footnote font working, after which I'm pretty sure I can 
figure out the rest.  I know I'm doing something wrong with defining 
the font, but just don't understand what...

Thanks!
Bruce

Bruce D'Arcus wrote:

>Jens-Uwe Morawski wrote:
>>Send a listing of the T1 font file names, their characteristics
>>(regular,bold,italic,slanted,...,osf,SmallCaps,...) and where
>>(bodyfont,footnotes,captions) they should be used.
>>Then we can discuss the set-up.
>
>Below is the complete contents of the type-HoeflerText file (or was it 
>font-HoeflerText? My email access is via internet cafe right now so I 
>don't have the actual file with me!). Actually, the default of HT has 
>old-style figures, so the ehtr8t font has those.  As I said, all of 
>this works correctly in LaTeX (using the eht.map with pdftex).  I 
>changed the encoding to T1 because the ligatures and the margin kerning 
>weren't working right with whatever I was using before.  Now they work, 
>so I assume there's no problem there.
>
>\definefontsynonym [Serif][ehtr8t][encoding=T1,handling=pure]
>\definefontsynonym [SerifBold][ehtc8t][encoding=T1,handling=pure]
>\definefontsynonym [SerifItalic][ehtri8t][encoding=T1,handling=pure]
>\definefontsynonym [SerifSlanted][ehtri8t][encoding=T1,handling=pure]
>\definefontsynonym [SerifBoldItalic][ehtci8t][encoding=T1,handling=pure]
>\definefontsynonym 
>[SerifBoldSlanted][ehtci8t][encoding=T1,handling=pure]
>\definefontsynonym [SerifCaps][ehtrc8t][encoding=T1,handling=pure]
>\definefontsynonym [SerifBoldCaps][ehtcc8t][encoding=T1,handling=pure]
>\definefontsynonym [SerifFootnote][ehtr18f][encoding=T1,handling=pure]
>\definefontsynonym 
>[SerifMonoLiningFigures][ehtr18l][encoding=T1,handling=pure]
>
>\definefontsynonym [Sans][5sxr8t][encoding=8r,handling=pure]
>\definefontsynonym [SansBold][5sxb8t][encoding=8r,handling=pure]
>\definefontsynonym [SansBlack][5sxc8t][encoding=8r,handling=pure]
>\definefontsynonym [SansItalic][5sxri8t][encoding=8r,handling=pure]
>\definefontsynonym [SansSlanted][5sxri8t][encoding=8r,handling=pure]
>
>\definefontsynonym [Mono][pcrr8t][encoding=ec]
>\definefontsynonym [MonoBold][pcrb8t][encoding=ec]
>\definefontsynonym [MonoItalic][pcrro8t][encoding=ec]
>\definefontsynonym [MonoSlanted][pcrro8t][encoding=ec]
>\definefontsynonym [MonoBoldItalic][pcrbo8t][encoding=ec]
>\definefontsynonym [MonoBoldSlanted][pcrbo8t][encoding=ec]
>
>\definebodyfont[14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt][rm][default]
>
>
>
>


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: ConTeXt and expert fonts
@ 2002-08-10 15:02 Bruce D'Arcus
  0 siblings, 0 replies; 11+ messages in thread
From: Bruce D'Arcus @ 2002-08-10 15:02 UTC (permalink / raw)
  Cc: ConTeXt

Jens-Uwe Morawski wrote:
>Send a listing of the T1 font file names, their characteristics
>(regular,bold,italic,slanted,...,osf,SmallCaps,...) and where
>(bodyfont,footnotes,captions) they should be used.
>Then we can discuss the set-up.

Below is the complete contents of the type-HoeflerText file (or was it 
font-HoeflerText? My email access is via internet cafe right now so I 
don't have the actual file with me!). Actually, the default of HT has 
old-style figures, so the ehtr8t font has those.  As I said, all of 
this works correctly in LaTeX (using the eht.map with pdftex).  I 
changed the encoding to T1 because the ligatures and the margin kerning 
weren't working right with whatever I was using before.  Now they work, 
so I assume there's no problem there.

\definefontsynonym [Serif][ehtr8t][encoding=T1,handling=pure]
\definefontsynonym [SerifBold][ehtc8t][encoding=T1,handling=pure]
\definefontsynonym [SerifItalic][ehtri8t][encoding=T1,handling=pure]
\definefontsynonym [SerifSlanted][ehtri8t][encoding=T1,handling=pure]
\definefontsynonym [SerifBoldItalic][ehtci8t][encoding=T1,handling=pure]
\definefontsynonym 
[SerifBoldSlanted][ehtci8t][encoding=T1,handling=pure]
\definefontsynonym [SerifCaps][ehtrc8t][encoding=T1,handling=pure]
\definefontsynonym [SerifBoldCaps][ehtcc8t][encoding=T1,handling=pure]
\definefontsynonym [SerifFootnote][ehtr18f][encoding=T1,handling=pure]
\definefontsynonym 
[SerifMonoLiningFigures][ehtr18l][encoding=T1,handling=pure]

\definefontsynonym [Sans][5sxr8t][encoding=8r,handling=pure]
\definefontsynonym [SansBold][5sxb8t][encoding=8r,handling=pure]
\definefontsynonym [SansBlack][5sxc8t][encoding=8r,handling=pure]
\definefontsynonym [SansItalic][5sxri8t][encoding=8r,handling=pure]
\definefontsynonym [SansSlanted][5sxri8t][encoding=8r,handling=pure]

\definefontsynonym [Mono][pcrr8t][encoding=ec]
\definefontsynonym [MonoBold][pcrb8t][encoding=ec]
\definefontsynonym [MonoItalic][pcrro8t][encoding=ec]
\definefontsynonym [MonoSlanted][pcrro8t][encoding=ec]
\definefontsynonym [MonoBoldItalic][pcrbo8t][encoding=ec]
\definefontsynonym [MonoBoldSlanted][pcrbo8t][encoding=ec]

\definebodyfont[14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt][rm][default]


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: ConTeXt and expert fonts
@ 2002-08-08 14:19 Bruce D'Arcus
  0 siblings, 0 replies; 11+ messages in thread
From: Bruce D'Arcus @ 2002-08-08 14:19 UTC (permalink / raw)
  Cc: ConTeXt

Jens-Uwe Morawski wrote:

>IMO, the main problem is that there is no standard encoding
>for those glyphs. The most common font encodings texnansi and
>ec do not include oldstyle figures and other interesting expert
>glyphs.

What I did to get it working with LaTeX was to modify the encoding 
files I used to create the tfm and vf files to map what I need 
(smallcaps, superiors, monospaced figures, etc.) into the standard T1 
encoding.  The issue isn't the fonts (since I have them working in 
LaTeX); it's how to tell ConTeXt how to use them.  What I want, in 
essence, is to define things like SerifFootnote (serif, because it 
shouldn't be specific to Hoefler Text), SerifMonoLining, SerifMonoOSF, 
etc., and then to tell ConTeXt: "use the footnote font for footnotes, 
the monoOSF fonts for tables, etc."

I'll send a simple sample file later, per Hans' suggestion...

Bruce


^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <3978810.1028738892491.JavaMail.cpadmin@nassol01.mcs.muohio .edu>]
* ConTeXt and expert fonts
@ 2002-08-07 16:48 Bruce D'Arcus
  2002-08-07 18:02 ` Frans Goddijn
  2002-08-08  9:01 ` Jens-Uwe Morawski
  0 siblings, 2 replies; 11+ messages in thread
From: Bruce D'Arcus @ 2002-08-07 16:48 UTC (permalink / raw)


OK, I've gone through all the manuals, and tried hard to figure this 
out, but obviously don't quite get the details of the font system in 
ConTeXt.

I want to set up a font (like Minion, or in this case Hoefler Text) for 
use in the following way:

For all tables    monospaced figures (osf or lining)
For all headings and page numbers   proportional lining
text  osf
footnote markers  superiors

SO my basic question is: how do I do this?  I have tried to set up a 
"SerifFootnote" fontsynonym (which is to access a specially-encoded 
"footnote" font), but no matter how I try to access it, I get an 
"unknown variant" error.

More generally, there's an interesting article on using so-called "rich 
font" (like Hoefler Text, but in the future, OpenType) with TeX, in 
which the author argues that TeX macros need to take the more complex 
capabilities of these fonts into account.  A relevant excerpt 
(http://www.math.tau.ac.il/~stoledo/Pubs/richfonts.ps):

"Macro packages, especially LATEX, should support
the features of rich fonts. In particular, I believe
that macro packages should automatically select
the correct numerals for most situations. The enhancement 
to LATEX that I envision would automatically
select fixed-width numerals in tables, and
would automatically select lining numerals when there
numerals are isolated (as in page numbers and the
table of contents) or when the numeral is likely to
be followed by a capital (as in section numbers).
There are also cases where the LATEX style can also
automatically select the best punctuation, especially
parentheses, brackets, and braces. Essentially, when
lining figures are enclosed alone in parentheses, the
parentheses should also be lining, as in reference
number in many bibTEX styles and in equation numbers."

Why not in ConTeXt then?  If one has a complete expert set of a font 
like Minion, shouldn't what I outlined above be the default behavior of 
a TeX macro system?  Once TeX supports OpenType this will become all 
the more relevant...

Bruce


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

end of thread, other threads:[~2002-08-15 22:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-09  2:09 ConTeXt and expert fonts Bruce D'Arcus
2002-08-09  9:17 ` Jens-Uwe Morawski
  -- strict thread matches above, loose matches on Subject: below --
2002-08-15 22:02 Bruce D'Arcus
2002-08-14 15:50 Bruce D'Arcus
2002-08-15 16:09 ` Hans Hagen
2002-08-10 15:02 Bruce D'Arcus
2002-08-08 14:19 Bruce D'Arcus
     [not found] <3978810.1028738892491.JavaMail.cpadmin@nassol01.mcs.muohio .edu>
2002-08-08  7:10 ` Hans Hagen
2002-08-07 16:48 Bruce D'Arcus
2002-08-07 18:02 ` Frans Goddijn
2002-08-08  9:01 ` Jens-Uwe Morawski

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