From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42456 Path: news.gmane.org!not-for-mail From: Andrea Valle Newsgroups: gmane.comp.tex.context Subject: Re: fonts (in luatex) (again) Date: Tue, 15 Jul 2008 17:10:06 +0200 Message-ID: References: <441B3D72-7906-465D-881E-2A821D1CBFC5@di.unito.it> <115224fb0806292356s7f312fbbod57ada5a7d78e736@mail.gmail.com> <90C5F317-A644-4A2A-85CC-A26DDE3C4230@di.unito.it> <6faad9f00807150622y298d50f0oa8857108e21dce4@mail.gmail.com> <9D2A57BA-6257-449A-B89B-02BCBBFA40B1@di.unito.it> <6faad9f00807150716n43c893e2pf52a8114296e4b6d@mail.gmail.com> <6faad9f00807150718s30dd2e38ob948fa388d42cd4a@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: multipart/mixed; boundary="===============0194005996==" X-Trace: ger.gmane.org 1216134761 17624 80.91.229.12 (15 Jul 2008 15:12:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jul 2008 15:12:41 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 15 17:13:28 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KImDP-0005TV-Qd for gctc-ntg-context-518@m.gmane.org; Tue, 15 Jul 2008 17:13:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 147151FC7B; Tue, 15 Jul 2008 17:12:25 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27868-01-12; Tue, 15 Jul 2008 17:11:36 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A60231FC0B; Tue, 15 Jul 2008 17:11:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 75DC61FC0B for ; Tue, 15 Jul 2008 17:11:30 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28644-01-8 for ; Tue, 15 Jul 2008 17:10:47 +0200 (CEST) Original-Received: from pianeta.di.unito.it (pianeta.di.unito.it [130.192.156.1]) by ronja.ntg.nl (Postfix) with ESMTP id 92D8D1FC7C for ; Tue, 15 Jul 2008 17:10:42 +0200 (CEST) Original-Received: from [192.168.3.104] (multilabfw-nat3.multilab.unito.it [130.192.205.50]) by pianeta.di.unito.it (INFO-DIP) with ESMTP id m6FFA8WM024021 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO userCertificateDN= AuthenticatedUser=valle ) for ; Tue, 15 Jul 2008 17:10:09 +0200 (MEST) In-Reply-To: <6faad9f00807150718s30dd2e38ob948fa388d42cd4a@mail.gmail.com> X-Mailer: Apple Mail (2.753.1) X-dipinfo-MailScanner-Information: Please contact Department of Computer Science technical staff for more information X-AntiVirus: Scanned for viruses by VirusFinder @2001-tecnici@di.unito.it - Email Clean X-SpamCheck: not spam, SpamAssassin (score=-101.202, required 3.5, autolearn=not spam, AUTHENTICATEDUSER -100.00, BAYES_00 -2.60, HTML_MESSAGE 0.00, MIME_QP_LONG_LINE 1.40) X-MailScanner-From: valle@di.unito.it X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:42456 Archived-At: --===============0194005996== Content-Type: multipart/alternative; boundary=Apple-Mail-2--543278372 --Apple-Mail-2--543278372 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Hi now I'm trying to use Optima. So I assembled a type-optima.tex with this: \starttypescript [sans] [optima] \definefontsynonym [OptimaRegular] [name:Optima Regular] =20 [features=3Ddefault] \definefontsynonym [OptimaBold] [name:Optima Bold] =20 [features=3Ddefault] \definefontsynonym [OptimaBoldItalic] [name:Optima Bold =20 Italic] [features=3Ddefault] \definefontsynonym [OptimaExtraBlack] [name:Optima =20 ExtraBlack] [features=3Ddefault] \definefontsynonym [OptimaItalic] [name:Optima Italic] =20 [features=3Ddefault] \stoptypescript \starttypescript [sans] [optima] \definefontsynonym [Sans] [OptimaRegular] =20 [features=3Ddefault] \definefontsynonym [SansItalic] [OptimaItalic] =20 [features=3Ddefault] \definefontsynonym [SansBold] [OptimaBold] =20 [features=3Ddefault] \definefontsynonym [SansBoldItalic] [OptimaBoldItalic] =20 [features=3Ddefault] \definefontsynonym [SansExtra] [OptimaExtraBlack] =20 [features=3Ddefault] \stoptypescript \starttypescript \definetypeface[optima][rm][sans][optima][default] \definetypeface[optima][ss][sans][optima][default] \definetypeface[optima][tt][mono][modern] [default][rscale=3D1.12] \definetypeface[optima][mm][math][iwona] [default][rscale=3D1.02] \stoptypescript Then, did the usual stuff. But the pdf from \usetypefile [optima] \usetypescript[optima] \setupbodyfont[optima] \starttext Oh yes, I'm a test, baby {\bf there's a little} {\em black} {\sc spot} in the sun today \stoptext=09 uses LM. The console says: .... specials : fdf loaded ) (type-optima.tex) ... the font file is Optima.dfont Best -a- On 15 Jul 2008, at 16:18, Mojca Miklavec wrote: > On Tue, Jul 15, 2008 at 4:16 PM, Mojca Miklavec wrote: >> Hello Andrea, >> >> before proceeding any further ... where on earth did you find exactly >> that font? :) :) :) >> >> It's a "resource-based" Type1 font or whatever they call it. I don't >> believe that LuaTeX supports such fonts at all, but maybe Taco can >> correct me. XeTeX only supports those fonts when using xdv2pdf engine >> (xdvipdfmx doesn't honor them). And I would say "if you really wanted >> to use those fonts in ConTeXt, there is a way, but hardcoded deep =20 >> down >> in ConTeXt core". > > Btw: with the fonts that you have sent me, the definitions should be > > \starttypescript [sans] [delicious] > \definefontsynonym [Delicious-Regular] [file:DelicRom] =20 > [features=3Ddefault] > \definefontsynonym [Delicious-Italic] [file:DelicIta] =20 > [features=3Ddefault] > \definefontsynonym [Delicious-Bold] [file:DelicBol] =20 > [features=3Ddefault] > \definefontsynonym [Delicious-BoldItalic] [file:DelicBolIta] =20 > [features=3Ddefault] > % it should be features=3Dsmallcaps for normal fonts > \definefontsynonym [Delicious-Caps] [file:DelicSmaCap] =20 > [features=3Ddefault] > \stoptypescript > > But the font doesn't work with LuaTeX anyway (it could work in XeTeX), > so do not even try. The name after "file:" needs to match the > filename. > > Mojca > ______________________________________________________________________=20= > _____________ > If your question is of interest to others as well, please add an =20 > entry to the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/=20 > ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ______________________________________________________________________=20= > _____________ -------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Universit=E0 degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> http://www.myspace.com/andreavalle --> andrea.valle@unito.it -------------------------------------------------- " Think of it as seasoning . noise [salt] is boring . F(blah) [food without salt] can be boring . F(noise, blah) can be really tasty " (Ken Perlin on noise) --Apple-Mail-2--543278372 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 Hi=A0

now I'm trying to use = Optima.

So I assembled a type-optima.tex with = this:

\starttypescript [sans] = [optima]

=A0=A0 =A0\definefontsynonym = [OptimaRegular] =A0 [name:Optima Regular] =A0 = [features=3Ddefault]
=A0=A0 =A0\definefontsynonym [OptimaBold] = =A0 [name:Optima Bold] =A0 [features=3Ddefault]
=A0=A0 = =A0\definefontsynonym [OptimaBoldItalic] =A0 [name:Optima Bold Italic] =A0= [features=3Ddefault]
=A0=A0 =A0\definefontsynonym = [OptimaExtraBlack] =A0 [name:Optima ExtraBlack] =A0 = [features=3Ddefault]
=A0=A0 =A0\definefontsynonym = [OptimaItalic] =A0 [name:Optima Italic] =A0 = [features=3Ddefault]

\stoptypescript
\starttypescript [sans] = [optima]

=A0=A0 =A0\definefontsynonym [Sans] =A0 = =A0 =A0 =A0 =A0 =A0[OptimaRegular] [features=3Ddefault]
=A0=A0 = =A0\definefontsynonym [SansItalic] =A0 =A0 =A0[OptimaItalic] = =A0[features=3Ddefault]
=A0=A0 =A0\definefontsynonym = [SansBold] =A0 =A0 =A0 =A0[OptimaBold] [features=3Ddefault]
=A0=A0= =A0\definefontsynonym [SansBoldItalic] =A0[OptimaBoldItalic] = =A0[features=3Ddefault]
=A0=A0 =A0\definefontsynonym = [SansExtra] =A0[OptimaExtraBlack] = =A0[features=3Ddefault]

\stoptypescript

\starttypescript
\definetypeface[optima][rm][san= s][optima][default]
\definetypeface[optima][ss][sans][optima][de= fault]
\definetypeface[optima][tt][mono][modern] = =A0[default][rscale=3D1.12]
\definetypeface[optima][mm][math][iw= ona] =A0 = [default][rscale=3D1.02]
\stoptypescript




Then, did the usual = stuff.
But the pdf = =A0from

\usetypefile = [optima]
\usetypescript[optima]
\setupbodyfont[optima]=

\starttext
Oh yes, I'm a test, = baby

{\bf there's a little} {\em black} {\sc = spot}

in the sun today
\stoptext =

uses LM.
The console = says:

....
specials =A0 =A0 =A0 = : fdf loaded
) = (type-optima.tex)=A0

...

the font file is = Optima.dfont


Best
=
-a-

On 15 Jul 2008, at 16:18, = Mojca Miklavec wrote:

On Tue, Jul 15, 2008 at 4:16 PM, Mojca Miklavec = wrote:
Hello = Andrea,

before proceeding any further ... where on earth did = you find exactly
that font? :) :) :)

It's a = "resource-based" Type1 font or whatever they call it. I don't
believe that LuaTeX supports such fonts at all, but = maybe Taco can
correct me. XeTeX only supports = those fonts when using xdv2pdf engine
to use those fonts in ConTeXt, = there is a way, but hardcoded deep down
in = ConTeXt core".

Btw: with the fonts that you = have sent me, the definitions should be

=A0 =A0 [file:DelicRom]=A0 =A0 = [features=3Ddefault]
=A0 =A0 [file:DelicIta]=A0 =A0 = [features=3Ddefault]
=A0 =A0 =A0 [file:DelicBol]=A0 =A0 = [features=3Ddefault]
file:DelicBolIta] = [features=3Ddefault]
% it should be = features=3Dsmallcaps for normal fonts
=A0 =A0 =A0 [file:DelicSmaCap] = [features=3Ddefault]
\stoptypescript

But the = font doesn't work with LuaTeX anyway (it could work in XeTeX),
so do not even try. The name after "file:" needs to = match the
filename.

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
http://www.cirma.unito.it/andre= a/
= --------------------------------------------------


"
Think of it as = seasoning
. noise [salt] is boring
. = F(blah) [food without salt] can be boring
. = F(noise, blah) can be really tasty
"
(Ken Perlin on = noise)




=

= --Apple-Mail-2--543278372-- --===============0194005996== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0194005996==--