* Re: How to use a true type font?
2010-09-22 10:16 ` Mojca Miklavec
@ 2010-09-22 10:23 ` Hans Hagen
2010-09-22 11:49 ` Arthur Reutenauer
2010-09-22 12:04 ` Procházka Lukáš
2 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2010-09-22 10:23 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Mojca Miklavec
On 22-9-2010 12:16, Mojca Miklavec wrote:
> On Wed, Sep 22, 2010 at 12:06, Mojca Miklavec wrote:
>> 2010/9/22 Procházka Lukáš wrote:
>>>
>>> 1) What's the best destination where the BrickToBrick.ttf should be placed?
>>> (Now, I've copied the file to c:\ConTeXt\tex\texmf-local\BrickToBrick.ttf.)
>>
>> You need to put it to
>> a) c:\ConTeXt\tex\texmf-local\data\<politebutnotneededtoputfontnamefolderhere>\BrickToBrick.ttf
>> b) c:\ConTeXt\tex\texmf-local\fonts\opentype\brick\BrickToBrick.ttf
>> (or truetype instead of opentype; I'm not sure what kind of font it
>> is, but on the other hand I don't think that it really matters)
>
> An interesting observation: the font won't work if you put it under
> opentype, it only works if you put it under truetype or data. But your
> input works fine.
This is specific for tds (I never understood why the distinction was
made). However, if you use the flat fonts/data approach then you can mix
filetypes.
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to use a true type font?
2010-09-22 10:16 ` Mojca Miklavec
2010-09-22 10:23 ` Hans Hagen
@ 2010-09-22 11:49 ` Arthur Reutenauer
2010-09-22 12:04 ` Procházka Lukáš
2 siblings, 0 replies; 9+ messages in thread
From: Arthur Reutenauer @ 2010-09-22 11:49 UTC (permalink / raw)
To: Mailing list for ConTeXt users
>> You need to put it to
>> a) c:\ConTeXt\tex\texmf-local\data\<politebutnotneededtoputfontnamefolderhere>\BrickToBrick.ttf
>> b) c:\ConTeXt\tex\texmf-local\fonts\opentype\brick\BrickToBrick.ttf
>> (or truetype instead of opentype; I'm not sure what kind of font it
>> is, but on the other hand I don't think that it really matters)
>
> An interesting observation: the font won't work if you put it under
> opentype, it only works if you put it under truetype or data. But your
> input works fine.
It used to be that kpathsea looked for files with a .ttf extension
under truetype/ exclusively, and likewise for .otf and opentype/. This
is not correct because as you know, OpenType fonts can have a .ttf
extension if they use TrueType outlines (this is the case for all fonts
installed by default on Windows), but this is not a requirement (only a
"polite" thing to do for older rendering engines). In order to add to
the confusion, this behaviour has been changed in TeX Live 2010 where
the list of directories searched for is now basically the same for .ttf
and .otf (but in a different order -- I told you it was confusing :-)
Anyway, Mark IV should have no problem with it and disregard the file
extension completely. It makes little sense anyway for ConTeXt.
Arthur
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to use a true type font?
2010-09-22 10:16 ` Mojca Miklavec
2010-09-22 10:23 ` Hans Hagen
2010-09-22 11:49 ` Arthur Reutenauer
@ 2010-09-22 12:04 ` Procházka Lukáš
2010-09-22 12:11 ` Mojca Miklavec
2 siblings, 1 reply; 9+ messages in thread
From: Procházka Lukáš @ 2010-09-22 12:04 UTC (permalink / raw)
To: mailing list for ConTeXt users
... Thanks, it works perfectly.
I looked into c:\ConTeXt\tex\texmf\web2c\texmfcnf.lua (ln. 42) as well - it seems to me that paths for searching for various kinds of font are prescribed here, see e.g.:
TTFONTS = ".;$TEXMF/fonts/{data,truetype,ttf}//;$OSFONTDIR",
OPENTYPEFONTS = ".;$TEXMF/fonts/{data,opentype}//;$OSFONTDIR",
(Agrees with Mojca's observation.)
So if I insisted on keeping the BrickToBrick.ttf in a special directory, it would mean to change the lines above e.g. to:
TTFONTS = ".;$TEXMF/fonts/{data,truetype,ttf}//;$OSFONTDIR;MySpecialDirectory",
right?
And one more question - maybe due to that I'm not Linux user -
- what does the "!!" at the begin and the "//" at the and of some paths mean? Or is it something TeX-special?
Maybe a link to a document will be the answer...
Cheers,
Lukas
On Wed, 22 Sep 2010 12:16:05 +0200, Mojca Miklavec <mojca.miklavec.lists@gmail.com> wrote:
> On Wed, Sep 22, 2010 at 12:06, Mojca Miklavec wrote:
>> 2010/9/22 Procházka Lukáš wrote:
>>>
>>> 1) What's the best destination where the BrickToBrick.ttf should be placed?
>>> (Now, I've copied the file to c:\ConTeXt\tex\texmf-local\BrickToBrick.ttf.)
>>
>> You need to put it to
>> a) c:\ConTeXt\tex\texmf-local\data\<politebutnotneededtoputfontnamefolderhere>\BrickToBrick.ttf
>> b) c:\ConTeXt\tex\texmf-local\fonts\opentype\brick\BrickToBrick.ttf
>> (or truetype instead of opentype; I'm not sure what kind of font it
>> is, but on the other hand I don't think that it really matters)
>
> An interesting observation: the font won't work if you put it under
> opentype, it only works if you put it under truetype or data. But your
> input works fine.
>
> 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 : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to use a true type font?
2010-09-22 12:04 ` Procházka Lukáš
@ 2010-09-22 12:11 ` Mojca Miklavec
2010-09-22 12:20 ` Hans Hagen
0 siblings, 1 reply; 9+ messages in thread
From: Mojca Miklavec @ 2010-09-22 12:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
2010/9/22 Procházka Lukáš wrote:
>
> And one more question - maybe due to that I'm not Linux user -
>
> - what does the "!!" at the begin and the "//" at the and of some paths
> mean? Or is it something TeX-special?
!! means that a database must be created first. The advantage is that
searching is much faster, but the drawback is that you need to update
the database each time when you modify something (add or remove
files). Without !! it means that files are searched for on the fly.
Advantage: database doesn't need to be updated, drawback: slower
search.
I'm not sure - maybe entries in texmf-local should be without !!.
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to use a true type font?
2010-09-22 12:11 ` Mojca Miklavec
@ 2010-09-22 12:20 ` Hans Hagen
0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2010-09-22 12:20 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Mojca Miklavec
On 22-9-2010 2:11, Mojca Miklavec wrote:
> 2010/9/22 Procházka Lukáš wrote:
>>
>> And one more question - maybe due to that I'm not Linux user -
>>
>> - what does the "!!" at the begin and the "//" at the and of some paths
>> mean? Or is it something TeX-special?
>
> !! means that a database must be created first. The advantage is that
> searching is much faster, but the drawback is that you need to update
> the database each time when you modify something (add or remove
> files). Without !! it means that files are searched for on the fly.
> Advantage: database doesn't need to be updated, drawback: slower
> search.
>
> I'm not sure - maybe entries in texmf-local should be without !!.
no fun
only home has no !! (and one can even argue that as creating the
database is a one time shot while the constant delay of scanning can
take seconds in a worst case)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread