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 created a file named type-delicious.tex containing: \starttypescript [sans] [delicious] \setups[font:fallback:sans] \definefontsynonym [Sans] [Delicious-Regular] \definefontsynonym [SansItalic] [Delicious-Italic] \definefontsynonym [SansBold] [Delicious-Bold] \definefontsynonym [SansBoldItalic] [Delicious-BoldItalic] \definefontsynonym [SansCaps] [Delicious-Caps] \stoptypescript \starttypescript [sans] [delicious] \definefontsynonym [Delicious-Regular] [name:Delicious-Roman] [features=default] \definefontsynonym [Delicious-Italic] [name:Delicious-Italic] [features=default] \definefontsynonym [Delicious-Bold] [name:Delicious-Bold] [features=default] \definefontsynonym [Delicious-BoldItalic] [name:Delicious-BoldItalic] [features=default] \definefontsynonym [Delicious-Caps] [name:Delicious-SmallCaps] [features=default] \stoptypescript \starttypescript [delicious] \definetypeface [delicious] [ss] [sans] [delicious] [default] \stoptypescript (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 4. In my tex file I have added: \usetypefile [delicious] \usetypescript[delicious] \setupbodyfont[delicious] 5. while compiling I'm having a problem with delicious. Log attached ? Thanks Best -a-  -------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università 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)
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 a Turing-complete programming language that could theoretically be used for lots of things, has the design of local redefinition, so that "sans" within a group or a macro can be redefined to something other than delicious without you needing to worry about keeping track of global style changes. In short, like the Unix "small is beautiful" philosophy (and good programming) you make parts of your document that work, you put the working parts together, and the whole thing should have a good shot at working. It will also be remarkably consistent and behave in a manner that is more regular than, for example, Word's typesetting engine. And if you are working on a source for different outputs or even different possibilities of publication, you can switch out a font without having to muck about through every font reference in your document, saving hours of labor.
\starttypescript [sans] [delicious] \setups[font:fallback:sans] \definefontsynonym [Sans] [Delicious-Regular] \definefontsynonym [SansItalic] [Delicious-Italic] \definefontsynonym [SansBold] [Delicious-Bold] \definefontsynonym [SansBoldItalic] [Delicious-BoldItalic] \definefontsynonym [SansCaps] [Delicious-Caps] \stoptypescript
As I understand, this next bit maps the "expectations" of the typesetting engine to the capabilities of the font. For example, when working with InDesign/InCopy and importing things from Word, there's a difference between character style mappings and local overrides. Word processors usually employ local overrides. That means usually the typesetting engine picks from the alternative of a font face for bold, italic, and so on, or it takes the default face and changes its rasterization to create a faux bold, italic, and so on. In good typesetting, however, you actually link character styles with actual fonts, just like you would when hand-compositing blocks of type in a typecase with lots of clamps and so on. This bit looks like what character styles do in InDesign. The more I get into InDesign and work with my designers, the more I understand the basic typographical principles that make TeX and ConTeXt elegant.
\starttypescript [sans] [delicious] \definefontsynonym [Delicious-Regular] [name:Delicious-Roman] [features=default] \definefontsynonym [Delicious-Italic] [name:Delicious-Italic] [features=default] \definefontsynonym [Delicious-Bold] [name:Delicious-Bold] [features=default] \definefontsynonym [Delicious-BoldItalic] [name:Delicious-BoldItalic] [features=default] \definefontsynonym [Delicious-Caps] [name:Delicious-SmallCaps] [features=default] \stoptypescript
The following is not in the Ubuntu-distributed manual, so I am not sure about it.
\starttypescript [delicious] \definetypeface [delicious] [ss] [sans] [delicious] [default] \stoptypescript
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 -a- On 28 Jun 2008, at 19:55, Charles P. Schaum wrote:
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 a Turing-complete programming language that could theoretically be used for lots of things, has the design of local redefinition, so that "sans" within a group or a macro can be redefined to something other than delicious without you needing to worry about keeping track of global style changes.
In short, like the Unix "small is beautiful" philosophy (and good programming) you make parts of your document that work, you put the working parts together, and the whole thing should have a good shot at working. It will also be remarkably consistent and behave in a manner that is more regular than, for example, Word's typesetting engine.
And if you are working on a source for different outputs or even different possibilities of publication, you can switch out a font without having to muck about through every font reference in your document, saving hours of labor.
\starttypescript [sans] [delicious] \setups[font:fallback:sans] \definefontsynonym [Sans] [Delicious-Regular] \definefontsynonym [SansItalic] [Delicious-Italic] \definefontsynonym [SansBold] [Delicious-Bold] \definefontsynonym [SansBoldItalic] [Delicious-BoldItalic] \definefontsynonym [SansCaps] [Delicious-Caps] \stoptypescript
As I understand, this next bit maps the "expectations" of the typesetting engine to the capabilities of the font. For example, when working with InDesign/InCopy and importing things from Word, there's a difference between character style mappings and local overrides.
Word processors usually employ local overrides. That means usually the typesetting engine picks from the alternative of a font face for bold, italic, and so on, or it takes the default face and changes its rasterization to create a faux bold, italic, and so on. In good typesetting, however, you actually link character styles with actual fonts, just like you would when hand-compositing blocks of type in a typecase with lots of clamps and so on.
This bit looks like what character styles do in InDesign. The more I get into InDesign and work with my designers, the more I understand the basic typographical principles that make TeX and ConTeXt elegant.
\starttypescript [sans] [delicious] \definefontsynonym [Delicious-Regular] [name:Delicious-Roman] [features=default] \definefontsynonym [Delicious-Italic] [name:Delicious-Italic] [features=default] \definefontsynonym [Delicious-Bold] [name:Delicious-Bold] [features=default] \definefontsynonym [Delicious-BoldItalic] [name:Delicious-BoldItalic] [features=default] \definefontsynonym [Delicious-Caps] [name:Delicious-SmallCaps] [features=default] \stoptypescript
The following is not in the Ubuntu-distributed manual, so I am not sure about it.
\starttypescript [delicious] \definetypeface [delicious] [ss] [sans] [delicious] [default] \stoptypescript
______________________________________________________________________ _____________ 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 ______________________________________________________________________ _____________
-------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università 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)
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 know the details :)
depends on where you come from ... \font\whatever=somename<with xetex spec> should kind of work in luatex anyhow, the main idea behind the context font system is that one creates combinations with symbolic names and then can use those names also elsewhere (e.g. using SerifBold when defining a titlepage); if you don't use math and just one style, definitions are real simple, but in practice you define a combination (serif/sans, mono, math) you can predefine such a set, give it a name, and then reuse it for every document you want; there are a few examples of such typescripts \usetypescript[palatino][texnansi] \setupbodyfont[palatino,12pt] less commands make no sense any systems takes time to get accustomed to and tex is somewhat complicated by the fact that math definitions are part of the game as well as that we might want to conbine fonts. 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 -----------------------------------------------------------------
Thanks Hans before trying again with Wolfgang's example, I was curious to know. Is there something broken regarding font selection in luatex? I thought so. Just not to invest all the afternoon with no hopes...:) Best -a- On 30 Jun 2008, at 23:06, Hans Hagen wrote:
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 know the details :)
depends on where you come from ...
\font\whatever=somename<with xetex spec>
should kind of work in luatex
anyhow, the main idea behind the context font system is that one creates combinations with symbolic names and then can use those names also elsewhere (e.g. using SerifBold when defining a titlepage); if you don't use math and just one style, definitions are real simple, but in practice you define a combination (serif/sans, mono, math)
you can predefine such a set, give it a name, and then reuse it for every document you want; there are a few examples of such typescripts
\usetypescript[palatino][texnansi]
\setupbodyfont[palatino,12pt]
less commands make no sense
any systems takes time to get accustomed to and tex is somewhat complicated by the fact that math definitions are part of the game as well as that we might want to conbine fonts.
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 ----------------------------------------------------------------- ______________________________________________________________________ _____________ 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 ______________________________________________________________________ _____________
-------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università 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)
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 ----------------------------------------------------------------- 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 -----------------------------------------------------------------
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:
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
----------------------------------------------------------------- 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 ----------------------------------------------------------------- ______________________________________________________________________ _____________ 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 ______________________________________________________________________ _____________
-------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università 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)
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 but we're working on it (when we have a spare moment) 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 -----------------------------------------------------------------
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 seems the right folders, but doesn't find files in them. ....
that something is broken om mojca's machine but we're working on it (when we have a spare moment)
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 ----------------------------------------------------------------- ______________________________________________________________________ _____________ 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 ______________________________________________________________________ _____________
-------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università 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)
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 ----------------------------------------------------------------- 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 -----------------------------------------------------------------
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 -- name is "fonts.conf" local name = fonts.names.xml_configuration_file or "" if name ~= "" then -- this works on Hans' computer, but not here; name becomes empty local name = input.find_file(name,"other") -- so this loop is never entered and system fonts are never read if name ~= "" then collect(xml.collect_texts(xml.load(name),"dir",true)) end end 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. No, don't ask me where fonts.conf should be. Mine are at /Users/mojca/.fonts.conf /private/etc/fonts/fonts.conf but I have no idea what's the proper/default location if any. The /private/etc/fonts/fonts.conf one says: <!-- Load per-user customization file --> <include ignore_missing="yes">~/.fonts.conf</include> <!-- Load local system customization file --> <include ignore_missing="yes">local.conf</include> So I guess that's where the other one gets included. Mojca
-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 seems the right folders, but doesn't find files in them. ....
that something is broken om mojca's machine but we're working on it (when we have a spare moment) Hans
On Thu, Jul 3, 2008 at 9:57 AM, 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
-- name is "fonts.conf" local name = fonts.names.xml_configuration_file or "" if name ~= "" then -- this works on Hans' computer, but not here; name becomes empty local name = input.find_file(name,"other") -- so this loop is never entered and system fonts are never read if name ~= "" then collect(xml.collect_texts(xml.load(name),"dir",true)) end end
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.
No, don't ask me where fonts.conf should be. Mine are at /Users/mojca/.fonts.conf /private/etc/fonts/fonts.conf but I have no idea what's the proper/default location if any.
$TEXMF/fonts/conf/fonts.conf
The /private/etc/fonts/fonts.conf one says:
<!-- Load per-user customization file --> <include ignore_missing="yes">~/.fonts.conf</include>
<!-- Load local system customization file --> <include ignore_missing="yes">local.conf</include>
So I guess that's where the other one gets included.
But you need fonts.conf only for XeTeX, LuaTeX (better MkIV) could find the fonts with the predefined paths in mtxrun. elseif name == "macosx" then fix("OSFONTDIR", "$HOME/Library/Fonts//;/Library/Fonts//;/System/Library/Fonts//") else Regards Wolfgang
On Thu, Jul 3, 2008 at 10:48 AM, Wolfgang Schuster wrote:
On Thu, Jul 3, 2008 at 9:57 AM, 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 paths for Mac users, but then Hans switched to reading fonts.conf with
-- name is "fonts.conf" local name = fonts.names.xml_configuration_file or "" if name ~= "" then -- this works on Hans' computer, but not here; name becomes empty local name = input.find_file(name,"other") -- so this loop is never entered and system fonts are never read if name ~= "" then collect(xml.collect_texts(xml.load(name),"dir",true)) end end
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.
No, don't ask me where fonts.conf should be. Mine are at /Users/mojca/.fonts.conf /private/etc/fonts/fonts.conf but I have no idea what's the proper/default location if any.
$TEXMF/fonts/conf/fonts.conf
For XeTeX on Windows, yes. But not on other platforms.
The /private/etc/fonts/fonts.conf one says:
<!-- Load per-user customization file --> <include ignore_missing="yes">~/.fonts.conf</include>
<!-- Load local system customization file --> <include ignore_missing="yes">local.conf</include>
So I guess that's where the other one gets included.
But you need fonts.conf only for XeTeX, LuaTeX (better MkIV) could find the fonts with the predefined paths in mtxrun.
"could" could be read as "should" :) But on the other hand, reading fonts.conf does make sense (if you know where to look for it). It means that you get all the font paths properly set by default already.
elseif name == "macosx" then fix("OSFONTDIR", "$HOME/Library/Fonts//;/Library/Fonts//;/System/Library/Fonts//") else
OSFONT[S]DIR (I always forget which one) does get set. But did you try to use any fonts from there? Do they work (with a recent ConTeXt version)? Mojca
On Thu, Jul 3, 2008 at 11:28 AM, Mojca Miklavec
On Thu, Jul 3, 2008 at 10:48 AM, Wolfgang Schuster wrote:
On Thu, Jul 3, 2008 at 9:57 AM, 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 paths for Mac users, but then Hans switched to reading fonts.conf with
-- name is "fonts.conf" local name = fonts.names.xml_configuration_file or "" if name ~= "" then -- this works on Hans' computer, but not here; name becomes empty local name = input.find_file(name,"other") -- so this loop is never entered and system fonts are never read if name ~= "" then collect(xml.collect_texts(xml.load(name),"dir",true)) end end
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.
No, don't ask me where fonts.conf should be. Mine are at /Users/mojca/.fonts.conf /private/etc/fonts/fonts.conf but I have no idea what's the proper/default location if any.
$TEXMF/fonts/conf/fonts.conf
For XeTeX on Windows, yes. But not on other platforms.
The /private/etc/fonts/fonts.conf one says:
<!-- Load per-user customization file --> <include ignore_missing="yes">~/.fonts.conf</include>
<!-- Load local system customization file --> <include ignore_missing="yes">local.conf</include>
So I guess that's where the other one gets included.
But you need fonts.conf only for XeTeX, LuaTeX (better MkIV) could find the fonts with the predefined paths in mtxrun.
"could" could be read as "should" :) But on the other hand, reading fonts.conf does make sense (if you know where to look for it). It means that you get all the font paths properly set by default already.
Could make sense.
elseif name == "macosx" then fix("OSFONTDIR", "$HOME/Library/Fonts//;/Library/Fonts//;/System/Library/Fonts//") else
OSFONT[S]DIR (I always forget which one) does get set. But did you try to use any fonts from there? Do they work (with a recent ConTeXt version)?
Last beta with delicoius fonts in $HOME/Library/Fonts has worked. Wolfgang
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 paths for Mac users, but then Hans switched to reading fonts.conf with
-- name is "fonts.conf" local name = fonts.names.xml_configuration_file or "" if name ~= "" then -- this works on Hans' computer, but not here; name becomes empty local name = input.find_file(name,"other") -- so this loop is never entered and system fonts are never read if name ~= "" then collect(xml.collect_texts(xml.load(name),"dir",true)) end end
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.
No, don't ask me where fonts.conf should be. Mine are at /Users/mojca/.fonts.conf /private/etc/fonts/fonts.conf but I have no idea what's the proper/default location if any.
If this is fontconfig's fonts.conf, the per user file is ~/.fonts.conf, the system wide file depends on your installation. But not every user will have a ~/.fonts.conf (it must be manually created AFAIK). Regards, Khaled
The /private/etc/fonts/fonts.conf one says:
<!-- Load per-user customization file --> <include ignore_missing="yes">~/.fonts.conf</include>
<!-- Load local system customization file --> <include ignore_missing="yes">local.conf</include>
So I guess that's where the other one gets included.
Mojca
-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 seems the right folders, but doesn't find files in them. ....
that something is broken om mojca's machine but we're working on it (when we have a spare moment) Hans
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 ___________________________________________________________________________________
-- Khaled Hosny Arabic localizer and member of Arabeyes.org team
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) ----------------------------------------------------------------- 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 -----------------------------------------------------------------
On Wed, Jul 2, 2008 at 7:22 PM, 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.
Works for me on Mac and Windows. On windows I have the fonts in the opentype folder in my tex tree. On Mac I have the fonts in my local font directory. Regards Wolfgang
2008/7/2 Hans Hagen
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 with luatex and fails with texexec <all switches> In past days on a eeepc with linux xandros the same typescript worked (not perfectly) with texexec --xtx and failed with luatex. I made some mess in both OS'es for sure, but which one? % Typescript for exljbris fonts and other % Typescript for delicious % http://www.josbuivenga.demon.nl/delicious.html % --- from mailing list ---- \starttypescript [sans] [delicious] \setups[font:fallback:sans] \definefontsynonym [Sans] [Delicious-Regular] \definefontsynonym [SansItalic] [Delicious-Italic] \definefontsynonym [SansBold] [Delicious-Bold] \definefontsynonym [SansBoldItalic] [Delicious-BoldItalic] \definefontsynonym [SansCaps] [Delicious-Caps] \stoptypescript \starttypescript [sans] [delicious] \definefontsynonym [Delicious-Regular] [name:Delicious-Roman] [features=default] \definefontsynonym [Delicious-Italic] [name:Delicious-Italic] [features=default] \definefontsynonym [Delicious-Bold] [name:Delicious-Bold] [features=default] \definefontsynonym [Delicious-BoldItalic] [name:Delicious-BoldItalic] [features=default] \definefontsynonym [Delicious-Caps] [name:Delicious-SmallCaps] [features=default] \stoptypescript \starttypescript [delicious] \definetypeface [delicious] [ss] [sans] [delicious] [default] \stoptypescript % typescript for fertigo % http://www.josbuivenga.demon.nl/fertigo.html \starttypescript [sans] [fertigo] \setups[font:fallback:sans] \definefontsynonym [Sans] [Fertigo-Regular] \stoptypescript \starttypescript [sans] [fertigo] \definefontsynonym [Fertigo-Regular] [name:Fertigo_18] [features=default] \stoptypescript \starttypescript [fertigo] \definetypeface [fertigo] [ss] [sans] [fertigo] [default] \stoptypescript %typescript for fontin-sans % http://www.josbuivenga.demon.nl/fontinsans.html \starttypescript [sans] [fontin] \setups[font:fallback:sans] \definefontsynonym [Sans] [Fontin-Regular] \definefontsynonym [SansItalic] [Fontin-Italic] \definefontsynonym [SansBold] [Fontin-Bold] \definefontsynonym [SansBoldItalic] [Fontin-BoldItalic] \definefontsynonym [SansCaps] [Fontin-Caps] \stoptypescript \starttypescript [sans] [fontin] \definefontsynonym [Fontin-Regular] [name:Fontin_Sans_R_45b] [features=default] \definefontsynonym [Fontin-Italic] [name:Fontin_Sans_I_45b] [features=default] \definefontsynonym [Fontin-Bold] [name:Fontin_Sans_B_45b] [features=default] \definefontsynonym [Fontin-BoldItalic] [name:Fontin_Sans_BI_45b] [features=default] \definefontsynonym [Fontin-Caps] [name:Fontin_Sans_SC_45b] [features=default] \stoptypescript \starttypescript [fontin] \definetypeface [fontin] [ss] [sans] [fontin] [default] \stoptypescript % typescript for alphamack % http://www.urbanfonts.com/fonts/AlphaMack.htm \starttypescript [handwriting] [alphamack] % \setups[font:fallback:sans] \definefontsynonym [Handwriting] [Alphamack] \stoptypescript \starttypescript [handwriting] [alphamack] \definefontsynonym [Alphamack][file:AlphaMack][features=default] \stoptypescript \starttypescript [alphamack] \definetypeface [alphamack] [hw] [handwriting] [alphamack] [default] \stoptypescript %typescript for journal %http://www.dafont.com/journal.font \starttypescript [handwriting] [journal] \definefontsynonym [Handwriting] [journal] \stoptypescript \starttypescript [handwriting] [journal] \definefontsynonym [journal] [file:journal] [features=default] \stoptypescript \starttypescript [journal] \definetypeface [journal] [hw] [handwriting] [journal] [default] \stoptypescript -- Diego Depaoli
Hi Andrea,
On Sat, Jun 28, 2008 at 5:34 PM, Andrea Valle
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 created a file named type-delicious.tex containing: \starttypescript [sans] [delicious] \setups[font:fallback:sans] \definefontsynonym [Sans] [Delicious-Regular] \definefontsynonym [SansItalic] [Delicious-Italic] \definefontsynonym [SansBold] [Delicious-Bold] \definefontsynonym [SansBoldItalic] [Delicious-BoldItalic] \definefontsynonym [SansCaps] [Delicious-Caps] \stoptypescript
\starttypescript [sans] [delicious] \definefontsynonym [Delicious-Regular] [name:Delicious-Roman] [features=default] \definefontsynonym [Delicious-Italic] [name:Delicious-Italic] [features=default] \definefontsynonym [Delicious-Bold] [name:Delicious-Bold] [features=default] \definefontsynonym [Delicious-BoldItalic] [name:Delicious-BoldItalic] [features=default] \definefontsynonym [Delicious-Caps] [name:Delicious-SmallCaps] [features=default] \stoptypescript \starttypescript [delicious] \definetypeface [delicious] [ss] [sans] [delicious] [default] \stoptypescript
(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 name you have to create the database with the entries: mtxrun --script font --reload
4. In my tex file I have added: \usetypefile [delicious] \usetypescript[delicious] \setupbodyfont[delicious] 5. while compiling I'm having a problem with delicious. Log attached
Make a test with the fonts and the files in the same directory. When this did not work access the fonts by filename and not by fontname, to do thos you have to replace "name:" by "file:", this is unproblematic for the delicious fonts because fontname and filename are equal. Regards Wolfgang
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 -------------------------------------------------- CIRMA - DAMS Università 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)
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 name you have to create the database with the entries:
mtxrun --script font --reload
where should I be in order to run it? I have not set the env variables, I'm using this kind of approach: cd /Applications/ConTeXtMinimals/ . /Applications/ConTeXtMinimals/tex/setuptex /Applications/ ConTeXtMinimals/tex
4. In my tex file I have added: \usetypefile [delicious] \usetypescript[delicious] \setupbodyfont[delicious] 5. while compiling I'm having a problem with delicious. Log attached
Make a test with the fonts and the files in the same directory.
This does not work. It aborts because of delicious not found. But if I put the type-delicious.tex file in /Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/ then run mtxrun --script font --reload I have not errors, but the used font is not delicious (I guess it's LM)
When this did not work access the fonts by filename and not by fontname, to do thos you have to replace "name:" by "file:", this is unproblematic for the delicious fonts because fontname and filename are equal.
Does not change anything Thanks Best -a-
Regards Wolfgang ______________________________________________________________________ _____________ 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 ______________________________________________________________________ _____________
-------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università 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)
On Tue, Jul 15, 2008 at 3:14 PM, 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 name you have to create the database with the entries: mtxrun --script font --reload
where should I be in order to run it? I have not set the env variables, I'm using this kind of approach: cd /Applications/ConTeXtMinimals/ . /Applications/ConTeXtMinimals/tex/setuptex /Applications/ConTeXtMinimals/tex
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 that.
4. In my tex file I have added: \usetypefile [delicious] \usetypescript[delicious] \setupbodyfont[delicious] 5. while compiling I'm having a problem with delicious. Log attached
Make a test with the fonts and the files in the same directory.
This does not work. It aborts because of delicious not found. But if I put the type-delicious.tex file in /Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/ then run mtxrun --script font --reload I have not errors, but the used font is not delicious (I guess it's LM)
Looks as if something is wrong with filename database. Does luatools --generate solve anything? Mojca
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 that.
Ah, ok, it sets up the path for the session. Done. The list does not include delicious as far as I can say, and the total is the same as before (161)
not delicious (I guess it's LM)
Looks as if something is wrong with filename database. Does luatools --generate solve anything?
Worse :) Now, in both circumstances (with type-delicious in /base or in the same folder of my test.tex file) compilation aborts. l.3 \setupbodyfont[delicious] ! ==> Fatal error occurred, no output PDF file produced! MtxRun | loading configuration for /Applications/ConTeXtMinimals/tex/ texmf/web2c from /Applications/ConTeXtMinimals/tex/texmf-cache/luatex- cache/context/aac20ce207a097b4b480d7b5eb76554a/trees/ d9ef00871d7b11751a275cffd8a85753 MtxRun | run 1: luatex --fmt="/Applications/ConTeXtMinimals/tex/texmf- cache/luatex-cache/context/aac20ce207a097b4b480d7b5eb76554a/formats/ cont-en" --lua="/Applications/ConTeXtMinimals/tex/texmf-cache/luatex- cache/context/aac20ce207a097b4b480d7b5eb76554a/formats/cont-en.lua" "/ test/test.tex" MtxRun | fatal error, code: 1 Best -a-
Mojca ______________________________________________________________________ _____________ 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 ______________________________________________________________________ _____________
-------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università 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)
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 down in ConTeXt core". I took a look at http://www.josbuivenga.demon.nl/delicious.html. You need to download PC (OpenType) font, not Mac (Type1). Apart from that, it works for me, but kpsewhich type-delicious.tex needs to return you the file if you want to be able to use it. And kpsewhich Delicious-Roman.otf needs to return you something as well. (replace kpsewhich by luatools in the previous sentence) On Tue, Jul 15, 2008 at 3:34 PM, Andrea Valle wrote:
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 that.
Ah, ok, it sets up the path for the session. Done. The list does not include delicious as far as I can say, and the total is the same as before (161)
not delicious (I guess it's LM)
Looks as if something is wrong with filename database. Does luatools --generate solve anything?
It should.
Worse :) Now, in both circumstances (with type-delicious in /base or in the same folder of my test.tex file) compilation aborts. l.3 \setupbodyfont[delicious]
! ==> Fatal error occurred, no output PDF file produced!
No idea. Something completely unrelated must be wrong then. Mojca
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 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] [features=default] \definefontsynonym [Delicious-Italic] [file:DelicIta] [features=default] \definefontsynonym [Delicious-Bold] [file:DelicBol] [features=default] \definefontsynonym [Delicious-BoldItalic] [file:DelicBolIta] [features=default] % it should be features=smallcaps for normal fonts \definefontsynonym [Delicious-Caps] [file:DelicSmaCap] [features=default] \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
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] \definefontsynonym [OptimaBoldItalic] [name:Optima Bold Italic] [features=default] \definefontsynonym [OptimaExtraBlack] [name:Optima ExtraBlack] [features=default] \definefontsynonym [OptimaItalic] [name:Optima Italic] [features=default] \stoptypescript \starttypescript [sans] [optima] \definefontsynonym [Sans] [OptimaRegular] [features=default] \definefontsynonym [SansItalic] [OptimaItalic] [features=default] \definefontsynonym [SansBold] [OptimaBold] [features=default] \definefontsynonym [SansBoldItalic] [OptimaBoldItalic] [features=default] \definefontsynonym [SansExtra] [OptimaExtraBlack] [features=default] \stoptypescript \starttypescript \definetypeface[optima][rm][sans][optima][default] \definetypeface[optima][ss][sans][optima][default] \definetypeface[optima][tt][mono][modern] [default][rscale=1.12] \definetypeface[optima][mm][math][iwona] [default][rscale=1.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 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 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] [features=default] \definefontsynonym [Delicious-Italic] [file:DelicIta] [features=default] \definefontsynonym [Delicious-Bold] [file:DelicBol] [features=default] \definefontsynonym [Delicious-BoldItalic] [file:DelicBolIta] [features=default] % it should be features=smallcaps for normal fonts \definefontsynonym [Delicious-Caps] [file:DelicSmaCap] [features=default] \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 ______________________________________________________________________ _____________ 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 ______________________________________________________________________ _____________
-------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università 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)
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 what a .dfont is :-/ Best wishes, Taco
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 should be manageable in Mark IV. Arthur
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 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 ______________________________________________________________________ _____________ 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 ______________________________________________________________________ _____________
-------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università 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)
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, tfm (TeX), ...
What about font files without extension?
I doubt. LuaTeX uses fontforge library to read fonts, so there is no reason why one would not be able to use them, but you would need to lend a Mac to Taco for a few days :) 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. Mojca
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) for use with whatever flavor of TeX you want. Thomas
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 presents the design decision of whether to support an alien font scheme that only exists in Steve Jobs' universe, not in the rest of the 95% of computers out there. Then there is the whole issue of encoding because especially the Apple .dfont files tend to have a number of named glyphs that Fontforge thinks are misplaced. Fontforge also will not open a font in a ~/.fonts dir, at least on Ubuntu Hardy. It does not appear to handle special cases of pathnames very well. You can, however, use Fontforge and fondu to get at the fonts in the resource fork; fondu looks like it is better for the task Charles On Tue, 2008-07-15 at 21:19 +0200, Thomas A. Schmitz wrote:
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) for use with whatever flavor of TeX you want.
Thomas ___________________________________________________________________________________ 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 ___________________________________________________________________________________
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 pretty straightforward to import the wrapper reader for .dfont disk files into luatex, so you can expect the wrapper format to be supported within the next month, not a big deal.
Then there is the whole issue of encoding because especially the Apple .dfont files tend to have a number of named glyphs that Fontforge thinks are misplaced.
This can be a problem, but we'll find that out soon enough. I'll work out some basics with Arthur and get back to you and Andrea after that. Best wishes, Taco
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] \setups[font:fallback:roman] \definefontsynonym [Serif] [Doulos SIL] \stoptypescript \starttypescript [serif] [doulos] \definefontsynonym [Doulos SIL] [file:DoulosSILR][features=default] \stoptypescript \starttypescript [doulos] \definetypeface [doulos] [rm] [roman] [doulos] [default] \stoptypescript But does not work. The fact is probably that I'm not really understanding what's going on here. I was reading some of the resources here: http://wiki.contextgarden.net/Fonts e.g. Thomas' article. http://tug.org/pracjourn/2005-2/schmitz/schmitz.pdf The problem is that I would probably need this (as suggested once by Aditya): http://wiki.contextgarden.net/Understanding_how_fonts_work_in_ConTeXt but it's pretty incomplete. I've also looked at http://www.pragma-ade.com/general/manuals/mfonts.pdf but cannot really follow it. Could anyone comment this famous piece of code? http://wiki.contextgarden.net/Mark_IV#A_.28Complete. 29_Typescript_Example I'd like to add infos to the wiki Thanks Best -a- -------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> http://www.myspace.com/andreavalle --> andrea.valle@unito.it -------------------------------------------------- I did this interview where I just mentioned that I read Foucault. Who doesn't in university, right? I was in this strip club giving this guy a lap dance and all he wanted to do was to discuss Foucault with me. Well, I can stand naked and do my little dance, or I can discuss Foucault, but not at the same time; too much information. (Annabel Chong) -------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università 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)
2008/7/15 Andrea Valle
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] [file:DoulosSILR][features=default] \stoptypescript \starttypescript [doulos] \definetypeface [doulos] [rm] [roman] [doulos] [default] \stoptypescript Changing 'roman' with 'serif' it worked for me (do not ask me why).
Ciao -- Diego Depaoli
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
: 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] [file:DoulosSILR][features=default] \stoptypescript \starttypescript [doulos] \definetypeface [doulos] [rm] [roman] [doulos] [default] \stoptypescript Changing 'roman' with 'serif' it worked for me (do not ask me why).
Ciao -- Diego Depaoli ______________________________________________________________________ _____________ 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 ______________________________________________________________________ _____________
-------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università 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)
On Wed, Jul 16, 2008 at 2:42 AM, Diego Depaoli
2008/7/15 Andrea Valle
: 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] [file:DoulosSILR][features=default] \stoptypescript \starttypescript [doulos] \definetypeface [doulos] [rm] [roman] [doulos] [default] \stoptypescript
Changing 'roman' with 'serif' it worked for me (do not ask me why).
It works because of these two arguments. \starttypescript [serif] [doulos] 'serif' and 'doulos' in the typescript. Wolfgang
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 infos to the wiki
Thanks and best -a- -------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università 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)
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 and font is and i'm not even sure if i want to know it; non portable so ... ----------------------------------------------------------------- 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 -----------------------------------------------------------------
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 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
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
----------------------------------------------------------------- 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 ----------------------------------------------------------------- ______________________________________________________________________ _____________ 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 ______________________________________________________________________ _____________
-------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università 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)
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 names by Wolfgang matches
Apart from that, it works for me,
Yes! for me too!
but kpsewhich type-delicious.tex needs to return you the file if you want to be able to use it. And
nothing, neither with luatools
kpsewhich Delicious-Roman.otf needs to return you something as well. (replace kpsewhich by luatools in the previous sentence)
the only thing which works is: polifilo:~ andreavalle$ luatools Delicious-Roman.otf /Users/andreavalle/Library/Fonts/Delicious-Roman.otf 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? Thanks Best -a- -------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> http://www.myspace.com/andreavalle --> andrea.valle@unito.it -------------------------------------------------- I did this interview where I just mentioned that I read Foucault. Who doesn't in university, right? I was in this strip club giving this guy a lap dance and all he wanted to do was to discuss Foucault with me. Well, I can stand naked and do my little dance, or I can discuss Foucault, but not at the same time; too much information. (Annabel Chong) -------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università 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)
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 $TEXMFHOME/tex/context/aditya/
TEXMFHOME is undefined in minimals for some reason (inherited from the old file). Maybe we should add it again? An alternative is to put files to texmf-local (that would be /Applications/ConTeXtMinimals/tex/texmf-local/tex/context/whatever-you-please/ on your computer), but $TEXMFHOME might make more sense. Just make sure that you don't loose those files after "accidental upgrade". Mojca
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 --> 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)
participants (11)
-
Aditya Mahajan
-
Andrea Valle
-
Arthur Reutenauer
-
Charles P. Schaum
-
Diego Depaoli
-
Hans Hagen
-
Khaled Hosny
-
Mojca Miklavec
-
Taco Hoekwater
-
Thomas A. Schmitz
-
Wolfgang Schuster