[NTG-context] How to use a true type font?

2010-09-22 Thread Procházka Lukáš

Hello,

I'm trying to use the BrickToBrick.ttf font.

It can be freely downloaded from  
http://moorstation.org/typoasis/designers/klein05/pic05/brick2brick.htm.

Problems are:

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

2) How to make ConTeXt realize that a new (.ttf) font has been added to use? Is 
it necessary to run any special routine?

3) How to use the font? I tried:


\definefont[BRICK][BrickToBrick.ttf at 30pt]

\starttext

 {\BRICK

  abcdefghijklmnopqrtsuvwxyz
  ABCDEFGHIJKLMNOPQRTSUVWXYZ
  0123456789
 }

\stoptext


But I got just letters and numbers.

4) Another thing is that there are only 14 pictures (= letters) in the font. So I don't know whether to use them via 
a, b, c... and what would happen for z as for 25th letter, or how.

- I saw this font working - it was used in the thick Book of Fonts III by 
Pavel Stříž; it was used in the right bottom quarter at page 171. But the book was 
typeset by pdfLaTeX and I'd like to make it work in ConTeXt.

Thank you in advance.

Lukas


___
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
___


Re: [NTG-context] How to use a true type font?

2010-09-22 Thread luigi scarso
2010/9/22 Procházka Lukáš l...@pontex.cz:
 Hello,

 I'm trying to use the BrickToBrick.ttf font.

 It can be freely downloaded from
  http://moorstation.org/typoasis/designers/klein05/pic05/brick2brick.htm.

 Problems are:

 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.)
Have you done
luatools --generate
?
Your tex  works for me.

-- 
luigi
___
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
___


Re: [NTG-context] How to use a true type font?

2010-09-22 Thread Mojca Miklavec
2010/9/22 Procházka Lukáš l...@pontex.cz:
 Hello,

 I'm trying to use the BrickToBrick.ttf font.

 It can be freely downloaded from
  http://moorstation.org/typoasis/designers/klein05/pic05/brick2brick.htm.

 Problems are:

 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)

 2) How to make ConTeXt realize that a new (.ttf) font has been added to use?
 Is it necessary to run any special routine?

In MKII the folder texmf-local and TEXMFHOME (%HOME%/texmf) should be
automatically searched (other trees not), but I do not guarantee that
MKIV does that in the same way.

In any case,
mtxrun --generate
should update the files for MKIV. In MKII that would be mktexlsr.


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
___


Re: [NTG-context] How to use a true type font?

2010-09-22 Thread Mojca Miklavec
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
___


Re: [NTG-context] How to use a true type font?

2010-09-22 Thread Hans Hagen

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
___


Re: [NTG-context] How to use a true type font?

2010-09-22 Thread Arthur Reutenauer
 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
___


Re: [NTG-context] How to use a true type font?

2010-09-22 Thread Procházka Lukáš

... 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.li...@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
___


Re: [NTG-context] How to use a true type font?

2010-09-22 Thread Mojca Miklavec
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
___


Re: [NTG-context] How to use a true type font?

2010-09-22 Thread Hans Hagen

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
___