Re: [NTG-context] fonts not found with newotf

2015-07-22 Thread Pablo Rodriguez
On 07/20/2015 10:47 PM, Wolfgang Schuster wrote:
 Pablo Rodriguez
 20. Juli 2015 17:08

 Many thanks for your fix, Hans.

 It works perfectly fine. The font was an improved conversion from a
 Type1 font I got from CTAN.

 Improved in which way?

Wolfgang,

at least, I added the space character (which is missing in the original
font). I don’t remember if I included other improvements.


Pablo
-- 
http://www.ousia.tk
___
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] fonts not found with newotf

2015-07-20 Thread Pablo Rodriguez
On 07/20/2015 12:31 AM, Hans Hagen wrote:
 On 7/19/2015 1:27 PM, Pablo Rodriguez wrote:
[...]
 The attached newotf-error.log contains the error message.

 Since both font files were generated with FontForge, I would like to
 know what they are missing to report upstream to the FontForge developers.
 
 there seems to be a cid entry operator seen when populating a private 
 dictionary in the cff section
 
 you can add this in line 552 of font-cff:
 
  cid   = {
  -- actually an error
  },
 
 and the font will probably load then, unless there is a fundamental flaw 
 (i don't know where to get that font)

Many thanks for your fix, Hans.

It works perfectly fine. The font was an improved conversion from a
Type1 font I got from CTAN.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] fonts not found with newotf

2015-07-20 Thread Wolfgang Schuster

Pablo Rodriguez mailto:oi...@gmx.es
20. Juli 2015 17:08

Many thanks for your fix, Hans.

It works perfectly fine. The font was an improved conversion from a
Type1 font I got from CTAN.

Improved in which way?

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] fonts not found with newotf

2015-07-19 Thread Pablo Rodriguez
Hans,

as reported in a previous message, using beta from 2015.07.16 13:30,
enabling the newotf module in the following sample makes the Mechanica
fonts not being loaded in the final PDF document:

\usemodule[newotf]

\definefontfamily
   [txfont]
   [tt]
   [Mechanica]
   [tf=file:Mechanica.otf,
it=features:slanted,
sc=file:MechanicaSC.otf]

\setupbodyfont[txfont]

\starttext
\tt Test {\it amfe} {\sc amfe}
\stoptext

The attached newotf-error.log contains the error message.

Since both font files were generated with FontForge, I would like to
know what they are missing to report upstream to the FontForge developers.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
fontsotf loading  loading '/home/ousia/ctxbeta/tex/texmf-fonts/ousia-fonts/Mechanica.otf', hash 'mechanica'
otf reader   fatal error in file '/home/ousia/ctxbeta/tex/texmf-fonts/ousia-fonts/Mechanica.otf': .../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:354: attempt to index field 'cid' (a nil value)
stack traceback:
.../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1853: in function '__newindex'
.../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:354: in function .../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:353
[C]: in function 'lpegmatch'
.../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:553: in function 'parseprivates'
.../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:1549: in function 'readnoselect'
.../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:1677: in function 'cff'
.../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1737: in function 'readdata'
.../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1772: in function .../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1755
[C]: in function 'xpcall'
.../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1855: in function 'loadfont'
.../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1884: in function 'loadfont'
.../ctxbeta/tex/texmf-context/tex/context/base/font-otl.lua:257: in function 'load'
.../ctxbeta/tex/texmf-context/tex/context/base/font-otl.lua:543: in function 'otftotfm'
.../ctxbeta/tex/texmf-context/tex/context/base/font-otl.lua:571: in function 'reader'
.../ctxbeta/tex/texmf-context/tex/context/base/font-def.lua:301: in function 'loadfont'
.../ctxbeta/tex/texmf-context/tex/context/base/font-ctx.lua:489: in function 'loadfont'
.../ctxbeta/tex/texmf-context/tex/context/base/font-def.lua:415: in function 'read'
.../ctxbeta/tex/texmf-context/tex/context/base/font-ctx.lua:1162: in function .../ctxbeta/tex/texmf-context/tex/context/base/font-ctx.lua:1049
fontsotf loading  loading failed due to read error
fontsdefining  forced type 'otf' of 'Mechanica' not found
fontsdefining  font with asked name 'Mechanica' is not found using lookup 'file'
fontsdefining  unknown font 'Mechanica', loading aborted
fontsdefining  unable to define 'Mechanica.otf' as 'txfont-12pt-tt-tf-0--0'
fontsotf loading  loading '/home/ousia/ctxbeta/tex/texmf-fonts/ousia-fonts/Mechanica.otf', hash 'mechanica'
otf reader   fatal error in file '/home/ousia/ctxbeta/tex/texmf-fonts/ousia-fonts/Mechanica.otf': .../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:354: attempt to index field 'cid' (a nil value)
stack traceback:
.../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1853: in function '__newindex'
.../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:354: in function .../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:353
[C]: in function 'lpegmatch'
.../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:553: in function 'parseprivates'
.../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:1549: in function 'readnoselect'
.../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:1677: in function 'cff'
.../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1737: in function 'readdata'
.../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1772: in function .../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1755
[C]: in function 'xpcall'
.../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1855: in function 'loadfont'
.../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1884: in function 'loadfont'
.../ctxbeta/tex/texmf-context/tex/context/base/font-otl.lua:257: in function 'load'
.../ctxbeta/tex/texmf-context/tex/context/base/font-otl.lua:543: in function 'otftotfm'
.../ctxbeta/tex/texmf-context/tex/context/base/font-otl.lua:571: in function 'reader'
.../ctxbeta/tex/texmf-context/tex/context/base/font-def.lua:301: in function 'loadfont'
.../ctxbeta/tex/texmf-context/tex/context/base/font-ctx.lua:489: in function 'loadfont'

Re: [NTG-context] fonts not found with newotf

2015-07-19 Thread Hans Hagen

On 7/19/2015 1:27 PM, Pablo Rodriguez wrote:

Hans,

as reported in a previous message, using beta from 2015.07.16 13:30,
enabling the newotf module in the following sample makes the Mechanica
fonts not being loaded in the final PDF document:

 \usemodule[newotf]

 \definefontfamily
[txfont]
[tt]
[Mechanica]
[tf=file:Mechanica.otf,
 it=features:slanted,
 sc=file:MechanicaSC.otf]

 \setupbodyfont[txfont]

 \starttext
 \tt Test {\it amfe} {\sc amfe}
 \stoptext

The attached newotf-error.log contains the error message.

Since both font files were generated with FontForge, I would like to
know what they are missing to report upstream to the FontForge developers.


there seems to be a cid entry operator seen when populating a private 
dictionary in the cff section


you can add this in line 552 of font-cff:

cid   = {
-- actually an error
},

and the font will probably load then, unless there is a fundamental flaw 
(i don't know where to get that font)


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
___