Re: [NTG-context] fonts (in luatex) (again)

2008-07-17 Thread Andrea Valle
Ok, as I'd really like to teach ConTeXt with font switching :) I repost here a real important question IMHO, solemnly promising to wikify the answer: Could anyone comment this famous piece of code? http://wiki.contextgarden.net/Mark_IV#A_.28Complete. 29_Typescript_Example I'd like to add

Re: [NTG-context] fonts (in luatex) (again)

2008-07-16 Thread Andrea Valle
Ah, grazie Diego it works here too (and, too, I don't know why :) ). Best -a- On 16 Jul 2008, at 02:42, Diego Depaoli wrote: 2008/7/15 Andrea Valle [EMAIL PROTECTED]: So, I'm testing with the type-doulos.tex file containg this \starttypescript [serif] [doulos] \setups[font:fallback:roman]

Re: [NTG-context] fonts (in luatex) (again)

2008-07-16 Thread Wolfgang Schuster
On Wed, Jul 16, 2008 at 2:42 AM, Diego Depaoli [EMAIL PROTECTED] wrote: 2008/7/15 Andrea Valle [EMAIL PROTECTED]: So, I'm testing with the type-doulos.tex file containg this \starttypescript [serif] [doulos] \setups[font:fallback:roman] \definefontsynonym [Serif] [Doulos SIL] \stoptypescript

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Andrea Valle
Still, can't have this font stuff working... (which I do not understand: but that's another story) I have saved the file under the same folder of tex file I'm working at 3. then I have called: context --generate 3.1. Generate name entries for the font database To access fonts with the

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Mojca Miklavec
On Tue, Jul 15, 2008 at 3:14 PM, Andrea Valle [EMAIL PROTECTED] wrote: Still, can't have this font stuff working... (which I do not understand: but that's another story) I have saved the file under the same folder of tex file I'm working at 3. then I have called: context --generate 3.1.

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Andrea Valle
You only need the second command. cd is not needed. Once you issue . /Applications/CM/tex/setuptex /Applications/CM/tex you should be able to run both mtxrun --script font --reload mtxrun --script font --list Maybe try to run luatools --selfupdate luatools --generate before

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Mojca Miklavec
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

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Andrea Valle
Ciao Mojca, before proceeding any further ... where on earth did you find exactly that font? :) :) :) On the ConTeXt mailing list, I was just following a previous thread on fonts :) You need to download PC (OpenType) font, not Mac (Type1). Ok, done, now I see that the original file

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Mojca Miklavec
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

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Andrea Valle
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] [features=default] \definefontsynonym [OptimaBold] [name:Optima Bold] [features=default]

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Mojca Miklavec
On Tue, Jul 15, 2008 at 5:10 PM, Andrea Valle wrote: Hi now I'm trying to use Optima. ... the font file is Optima.dfont I'm not sure if LuaTeX can (already) handle thole .dfont fonts. Neither Hans nor Taco use Mac for their everyday work. Taco? Mojca

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Aditya Mahajan
On Tue, 15 Jul 2008, Andrea Valle wrote: Is there a place where to put the the type- .tex files, so that they are available without having them to include in the working folder? I usually include my presonal files at $TEXMFHOME/tex/context/aditya/ Aditya

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Mojca Miklavec
On Tue, Jul 15, 2008 at 4:50 PM, Aditya Mahajan wrote: On Tue, 15 Jul 2008, Andrea Valle wrote: Is there a place where to put the the type- .tex files, so that they are available without having them to include in the working folder? I usually include my presonal files at

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Andrea Valle
Just make sure that you don't loose those files after accidental upgrade. Yeah, that's the point -a- -- Andrea Valle -- CIRMA - DAMS Università degli Studi di Torino --

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Andrea Valle
Ah, because I was thinking that LuaTeX was like XeTeX, where I can use all the system fonts So, which kind of font files should I consider? What about font files without extension? Thanks -a- On 15 Jul 2008, at 17:35, Mojca Miklavec wrote: On Tue, Jul 15, 2008 at 5:10 PM, Andrea Valle

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Taco Hoekwater
Mojca Miklavec wrote: On Tue, Jul 15, 2008 at 5:10 PM, Andrea Valle wrote: Hi now I'm trying to use Optima. ... the font file is Optima.dfont I'm not sure if LuaTeX can (already) handle thole .dfont fonts. Neither Hans nor Taco use Mac for their everyday work. Taco? I don't even know

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Arthur Reutenauer
I don't even know what a .dfont is :-/ It's a file that packs several font files (usually the four basic ones) into one. I don't know the details of the format, but I expect that it really only contains the font file, with a few headers. Fontforge has known how to handle it for years, so it

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Mojca Miklavec
On Tue, Jul 15, 2008 at 5:59 PM, Andrea Valle wrote: Ah, because I was thinking that LuaTeX was like XeTeX, where I can use all the system fonts So, which kind of font files should I consider? Any font. ... except for those that come with your Mac :) :) :) Well, you can use otf, ttf, pfb,

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Thomas A. Schmitz
On Jul 15, 2008, at 6:27 PM, Mojca Miklavec wrote: I'm not sure, but .dfont looks like AAT format and no extension like Mac-specific way of storing Type 1. Both doable, but someone needs to do that. You can run fondu on .dfont files and then use the resulting files (ttf or pfb, I guess)

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Hans Hagen
Andrea Valle wrote: Hi now I'm trying to use Optima. see type-ghz.tex and type-hgz.tex - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Charles P. Schaum
That's right; use fondu. Fontforge can read a .dfont (data fork resource) but it cannot specify something within that to load without user input. The only files that use .dfont are from Apple for Apple. The Mac knows what is basically coded into these files and works with them accordingly. That

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Andrea Valle
Thanks Hans, Optima is among my favourite fonts, but the idea was to understand how to use system fonts Best -a- On 15 Jul 2008, at 22:54, Hans Hagen wrote: Andrea Valle wrote: Hi now I'm trying to use Optima. see type-ghz.tex and type-hgz.tex

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Hans Hagen
Mojca Miklavec wrote: On Tue, Jul 15, 2008 at 5:10 PM, Andrea Valle wrote: Hi now I'm trying to use Optima. the font file is Optima.dfont I'm not sure if LuaTeX can (already) handle thole .dfont fonts. Neither Hans nor Taco use Mac for their everyday work. Taco? i have no clue what

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Andrea Valle
Sorry, I know I'm boring... Now I discovered I have substantially only one latin ttf font on my machine among the huge amount of fonts... Doulos SIL which file is DoulosSILR So, I'm testing with the type-doulos.tex file containg this \starttypescript [serif] [doulos]

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Taco Hoekwater
Hi, Quickly: Charles P. Schaum wrote: That's right; use fondu. Fontforge can read a .dfont (data fork resource) but it cannot specify something within that to load without user input. That's ok. It sounds very similar to the .ttc format, and we already have an interface for that. It will be

Re: [NTG-context] fonts (in luatex) (again)

2008-07-15 Thread Diego Depaoli
2008/7/15 Andrea Valle [EMAIL PROTECTED]: So, I'm testing with the type-doulos.tex file containg this \starttypescript [serif] [doulos] \setups[font:fallback:roman] \definefontsynonym [Serif] [Doulos SIL] \stoptypescript \starttypescript [serif] [doulos] \definefontsynonym [Doulos SIL]

Re: [NTG-context] fonts (in luatex) (again)

2008-07-03 Thread Hans Hagen
Andrea Valle wrote: But, Hans, in the post Mojca says I have the same problem:) uh? well, then you have to wait till mojca has figured out where it goes wrong; i have no mac to test it (it works ok here) Hans -

Re: [NTG-context] fonts (in luatex) (again)

2008-07-03 Thread Mojca Miklavec
On Thu, Jul 3, 2008 at 1:40 AM, Andrea Valle wrote: But, Hans, in the post Mojca says I have the same problem:) uh? In font-syn.lua there is local pathlist = fonts.names.getpaths() This used to contain some hard-coded paths for Mac users, but then Hans switched to reading fonts.conf with

Re: [NTG-context] fonts (in luatex) (again)

2008-07-03 Thread Wolfgang Schuster
On Thu, Jul 3, 2008 at 9:57 AM, Mojca Miklavec [EMAIL PROTECTED] wrote: On Thu, Jul 3, 2008 at 1:40 AM, Andrea Valle wrote: But, Hans, in the post Mojca says I have the same problem:) uh? In font-syn.lua there is local pathlist = fonts.names.getpaths() This used to contain some

Re: [NTG-context] fonts (in luatex) (again)

2008-07-03 Thread Khaled Hosny
On Thu, Jul 03, 2008 at 09:57:51AM +0200, Mojca Miklavec wrote: On Thu, Jul 3, 2008 at 1:40 AM, Andrea Valle wrote: But, Hans, in the post Mojca says I have the same problem:) uh? In font-syn.lua there is local pathlist = fonts.names.getpaths() This used to contain some hard-coded

Re: [NTG-context] fonts (in luatex) (again)

2008-07-03 Thread Wolfgang Schuster
On Wed, Jul 2, 2008 at 7:22 PM, Andrea Valle [EMAIL PROTECTED] wrote: Ah. So, what the mail by Mojca meant? the one starting with: Hans, I thought that it had worked some time ago, but it seems that it's broken. OPENTYPEFONTS seems the right folders, but doesn't find files in them. Works

Re: [NTG-context] fonts (in luatex) (again)

2008-07-03 Thread Wolfgang Schuster
On Thu, Jul 3, 2008 at 11:28 AM, Mojca Miklavec [EMAIL PROTECTED] wrote: On Thu, Jul 3, 2008 at 10:48 AM, Wolfgang Schuster wrote: On Thu, Jul 3, 2008 at 9:57 AM, Mojca Miklavec [EMAIL PROTECTED] wrote: On Thu, Jul 3, 2008 at 1:40 AM, Andrea Valle wrote: But, Hans, in the post Mojca says I

Re: [NTG-context] fonts (in luatex) (again)

2008-07-03 Thread Hans Hagen
Mojca Miklavec wrote: I guess that Hans has a fonts.conf in his TeX tree, while Linux Mac users don't, and luaTeX doesn't know where to look for fonts.conf. What's worse: I suspect that OSFONTSDIR might be completely ignored. ok, i'll remove that xml file and test further (not now, later)

Re: [NTG-context] fonts (in luatex) (again)

2008-07-02 Thread Hans Hagen
Andrea Valle wrote: Thanks Hans before trying again with Wolfgang's example, I was curious to know. Is there something broken regarding font selection in luatex? not that i know of, at least not if you use a recent beta Hans

Re: [NTG-context] fonts (in luatex) (again)

2008-07-02 Thread Andrea Valle
Ah. So, what the mail by Mojca meant? the one starting with: Hans, I thought that it had worked some time ago, but it seems that it's broken. OPENTYPEFONTS seems the right folders, but doesn't find files in them. ... Best -a- On 2 Jul 2008, at 17:41, Hans Hagen wrote: Andrea Valle wrote:

Re: [NTG-context] fonts (in luatex) (again)

2008-07-02 Thread Hans Hagen
Andrea Valle wrote: Ah. So, what the mail by Mojca meant? the one starting with: Hans, I thought that it had worked some time ago, but it seems that it's broken. OPENTYPEFONTS seems the right folders, but doesn't find files in them. that something is broken om mojca's machine

Re: [NTG-context] fonts (in luatex) (again)

2008-07-02 Thread Diego Depaoli
2008/7/2 Hans Hagen [EMAIL PROTECTED]: before trying again with Wolfgang's example, I was curious to know. Is there something broken regarding font selection in luatex? not that i know of, at least not if you use a recent beta My primary OS is FreeBSD where the following typescript works

Re: [NTG-context] fonts (in luatex) (again)

2008-07-02 Thread Andrea Valle
But, Hans, in the post Mojca says I have the same problem:) uh? -a- On 3 Jul 2008, at 00:09, Hans Hagen wrote: Andrea Valle wrote: Ah. So, what the mail by Mojca meant? the one starting with: Hans, I thought that it had worked some time ago, but it seems that it's broken. OPENTYPEFONTS

Re: [NTG-context] fonts (in luatex) (again)

2008-06-30 Thread Wolfgang Schuster
Hi Andrea, On Sat, Jun 28, 2008 at 5:34 PM, Andrea Valle [EMAIL PROTECTED] wrote: Following Wolfgang's advice (thanks) I have followed the delicious thread. So I have 1. downloaded the fonts and installed automatically via macosx Fontbook app (they are available in my system) 2. I have

Re: [NTG-context] fonts (in luatex) (again)

2008-06-30 Thread Andrea Valle
Ciao Wolfgang, To access fonts with the name you have to create the database with the entries: mtxrun --script font --reload Thanks, Mojca noticed a bug à propos (if I have understood) Best -a- -- Andrea Valle

Re: [NTG-context] fonts (in luatex) (again)

2008-06-30 Thread Andrea Valle
Thanks Charles A praise from the heart to the devs. Wouldn't be possibile to support font selection like in XeTeX? This would make thing really a lot easier for sublunar users like me. Really, the whole process it's damn' complicated: no one a part 2 or 3 seems to know the details :) Best

Re: [NTG-context] fonts (in luatex) (again)

2008-06-30 Thread Hans Hagen
Andrea Valle wrote: Thanks Charles A praise from the heart to the devs. Wouldn't be possibile to support font selection like in XeTeX? This would make thing really a lot easier for sublunar users like me. Really, the whole process it's damn' complicated: no one a part 2 or 3 seems to

Re: [NTG-context] fonts (in luatex) (again)

2008-06-28 Thread Charles P. Schaum
This first bit differentiates a backend that refers to your font and a frontend that you normally work with. Why? Macros, macros, macros. Let's put it this way: You could have a myriad of styles. That's what many in the WYSIWYG world do. Then ... they have to keep track of them all. But TeX, as