ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How to use a true type font?
@ 2010-09-22  9:02 Procházka Lukáš
  2010-09-22  9:09 ` luigi scarso
  2010-09-22 10:06 ` Mojca Miklavec
  0 siblings, 2 replies; 9+ messages in thread
From: Procházka Lukáš @ 2010-09-22  9:02 UTC (permalink / raw)
  To: ConTeXt

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: How to use a true type font?
  2010-09-22  9:02 How to use a true type font? Procházka Lukáš
@ 2010-09-22  9:09 ` luigi scarso
  2010-09-22 10:06 ` Mojca Miklavec
  1 sibling, 0 replies; 9+ messages in thread
From: luigi scarso @ 2010-09-22  9:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2010/9/22 Procházka Lukáš <lpr@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: How to use a true type font?
  2010-09-22  9:02 How to use a true type font? Procházka Lukáš
  2010-09-22  9:09 ` luigi scarso
@ 2010-09-22 10:06 ` Mojca Miklavec
  2010-09-22 10:16   ` Mojca Miklavec
  1 sibling, 1 reply; 9+ messages in thread
From: Mojca Miklavec @ 2010-09-22 10:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2010/9/22 Procházka Lukáš <lpr@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: How to use a true type font?
  2010-09-22 10:06 ` Mojca Miklavec
@ 2010-09-22 10:16   ` Mojca Miklavec
  2010-09-22 10:23     ` Hans Hagen
                       ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Mojca Miklavec @ 2010-09-22 10:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ 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: 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

end of thread, other threads:[~2010-09-22 12:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-22  9:02 How to use a true type font? Procházka Lukáš
2010-09-22  9:09 ` luigi scarso
2010-09-22 10:06 ` Mojca Miklavec
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
2010-09-22 12:20         ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).