[NTG-context] issue mixing font features (LMTX & MkIV)

2024-03-03 Thread Pablo Rodriguez via ntg-context
Dear list,

I have the following sample:

  \definefontfeature[wider][extend=2]

  \definefontfamily[mainface][rm][TeX Gyre Pagella]
[features={default, quality, wider},
 it={style: regular, features:{default, slanted, quality}},
 bf={style: regular, features:{default, boldened-30}},
 bi={style: regular, features:{default, boldened-30, slanted}}]

  \setupbodyfont
[mainface, 30pt]

  \starttext
  \startTEXpage[offset=1ex]
  a
  {\it a}\\
  {\bf a}
  {\bi a}
  \stopTEXpage
  \stoptext

With current latest (2024.02.27 09:21), LuaTeX gets boldened and slanted
for regular (but the other fonts cannot inherit the wider feature and
wider will not mix with boldened-30 [even when specified]).

For some reason, LMTX from current latest cannot get slanted and
boldened-30 (but it mixes the inherited wider feature in all fonts).

This began to behave differently in latest from 2024.01.08 11:23 (which
is my next version after the one from 2023.09.26 18:19).

Could anyone confirm the issue?

Many thanks for your help,

Pablo
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


Re: [NTG-context] issue with font

2023-01-01 Thread Pablo Rodriguez via ntg-context
On 1/1/23 12:38, Hans Hagen via ntg-context wrote:
> On 1/1/2023 11:55 AM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> I don’t know what is wrong in the font, but it would be great to be able
>> to use it with ConTeXt.
> Hm, i will catch it but am not going to look into the reason (like some 
> issue in the font). When I zoom in I wonder if typewriter fonts really 
> looked like that so there might be more accurate typewriter emulations 
> out there that you can try.

Many thanks for your fast reply, Hans.

The thing with that font is that it contains polytonic Greek and other
scripts.

Many thanks for your help,

Pablo

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] issue with font

2023-01-01 Thread Hans Hagen via ntg-context

On 1/1/2023 11:55 AM, Pablo Rodriguez via ntg-context wrote:

Hans,

I have the following sample.

   \starttext
   \definedfont[TruetypewriterPolyglott-mELa.ttf]
   \input zapf
   \stoptext

I get a fatal error in the font file (both LMTX and MkIV).

Font is https://www.fontspace.com/truetypewriter-polyglott-font-f14955
(direct donwnload from https://www.fontspace.com/get/family/zmmx1)

I don’t know what is wrong in the font, but it would be great to be able
to use it with ConTeXt.
Hm, i will catch it but am not going to look into the reason (like some 
issue in the font). When I zoom in I wonder if typewriter fonts really 
looked like that so there might be more accurate typewriter emulations 
out there that you can try.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] issue with font

2023-01-01 Thread Pablo Rodriguez via ntg-context
Hans,

I have the following sample.

  \starttext
  \definedfont[TruetypewriterPolyglott-mELa.ttf]
  \input zapf
  \stoptext

I get a fatal error in the font file (both LMTX and MkIV).

Font is https://www.fontspace.com/truetypewriter-polyglott-font-f14955
(direct donwnload from https://www.fontspace.com/get/family/zmmx1)

I don’t know what is wrong in the font, but it would be great to be able
to use it with ConTeXt.

Many thanks for your help,

Pablo
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] issue with font features

2018-07-24 Thread Pablo Rodriguez
On 07/24/2018 09:52 PM, Hans Hagen wrote:
> On 7/24/2018 9:24 PM, Pablo Rodriguez wrote:
>> [...]
>> The new font instance is what I was missing in many of the issues I had
>> with features.
> > hm, only with those that affect the glyph shapes in some way, not with
> normal otf kind of features i assume

Sorry, Hans, but I don’t remember. These two months are being demanding
and my memory is far from being perfect.

I think my problems were related to glyph shapes. But in any case, if I
detect what I think it might be a bug, rest assured I’ll report it.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] issue with font features

2018-07-24 Thread Hans Hagen

On 7/24/2018 9:24 PM, Pablo Rodriguez wrote:

On 07/24/2018 07:02 PM, Hans Hagen wrote:

On 7/24/2018 6:20 PM, Pablo Rodriguez wrote:

[...]
  \starttext
  {\feature[+][effect]1234567890}
  1234567890 {\feature[+][oldle]1234567890}
  \stoptext

I wonder why the first font feature ("effect") doesn’t work. What am I
missing?
because effects are not regular features so you need to create a new

instance (which makes sense as you cannot turn a regular font into an
italic or bold one either this way)


Many thanks for your explanation, Hans.

The new font instance is what I was missing in many of the issues I had
with features.
hm, only with those that affect the glyph shapes in some way, not with 
normal otf kind of features i assume


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] issue with font features

2018-07-24 Thread Pablo Rodriguez
On 07/24/2018 07:02 PM, Hans Hagen wrote:
> On 7/24/2018 6:20 PM, Pablo Rodriguez wrote:
>> [...]
>>  \starttext
>>  {\feature[+][effect]1234567890}
>>  1234567890 {\feature[+][oldle]1234567890}
>>  \stoptext
>>
>> I wonder why the first font feature ("effect") doesn’t work. What am I
>> missing?
> > because effects are not regular features so you need to create a new
> instance (which makes sense as you cannot turn a regular font into an 
> italic or bold one either this way)

Many thanks for your explanation, Hans.

The new font instance is what I was missing in many of the issues I had
with features.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] issue with font features

2018-07-24 Thread Hans Hagen

On 7/24/2018 6:20 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \definefontfeature[effect]%[effect=.2]
 [effect={width=.3,delta=0.4,factor=0.3}]

 \definefontfeature[oldle][onum=yes]

 \setupbodyfont[palatino]

 \starttext
 {\feature[+][effect]1234567890}
 1234567890 {\feature[+][oldle]1234567890}
 \stoptext

I wonder why the first font feature ("effect") doesn’t work. What am I
missing?
because effects are not regular features so you need to create a new 
instance (which makes sense as you cannot turn a regular font into an 
italic or bold one either this way)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] issue with font features

2018-07-24 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\definefontfeature[effect]%[effect=.2]
[effect={width=.3,delta=0.4,factor=0.3}]

\definefontfeature[oldle][onum=yes]

\setupbodyfont[palatino]

\starttext
{\feature[+][effect]1234567890}
1234567890 {\feature[+][oldle]1234567890}
\stoptext

I wonder why the first font feature ("effect") doesn’t work. What am I
missing?

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] issue with font loading

2016-03-03 Thread Wolfgang Schuster

Pablo Rodriguez 
2. März 2016 um 16:56

Even if the font is on the same directory as the ConTeXt source file? I
invoke it by its file name.

Sorry, this was outside the ConTeXt tree. And I didn’t know that it has
to be indexed by ConTeXt.

Loading font by filename whoch are in the same directory as your document
works only with typescripts but \definefontfamily has to look in the 
index even

when you the file-method to ensure the requested font is available.

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
___

Re: [NTG-context] issue with font loading

2016-03-02 Thread Pablo Rodriguez
On 03/02/2016 07:12 PM, Wolfgang Schuster wrote:
>> Pablo Rodriguez 2. März 2016 um 17:17
>> [...]
>> If another "key=value" pair is specified, "tf=file:newg8-regular"
>> doesn’t seem to work.
>>
>> What am I doing wrong?
> 
> Don’t write just some garbage as third argument for the
> \definefontfamily or \definefallbackfamily commands.
> 
> In the attached picture you can see the fonforge information for the
> font names, needed for the \definefontfamily command is the "family
> name" value.
> 
> \definefallbackfamily[mainface][rm][GaramondNo8][scale=0.88,range=0x22C0]

Many thanks for your reply, Wolfgang.

I wanted to avoid the installation of the font, because I had another
version of GaramondNo8 already installed.

So, I renamed the font and installed it. Everything works fine now.

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] issue with font loading

2016-03-02 Thread Thomas A. Schmitz

On 03/02/2016 07:12 PM, Wolfgang Schuster wrote:

Don’t write just some garbage as third argument for the
\definefontfamily or \definefallbackfamily commands.

In the attached picture you can see the fonforge information for the
font names,
needed for the \definefontfamily command is the "family name" value.

\definefallbackfamily[mainface][rm][GaramondNo8][scale=0.88,range=0x22C0]

Wolfgang


Or, if you happen to have texlive installed:

otfinfo -a 
___
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] issue with font loading

2016-03-02 Thread Wolfgang Schuster

Pablo Rodriguez 
2. März 2016 um 17:17

Wolfgang,

I’m afraid that even with that, I’m afraid it doesn’t work well:

\definefallbackfamily[mainface][rm][Latin Modern Math]
[tf=file:newg8-regular, scale=0.88, range=0x22C0]
\definefallbackfamily[mainface][rm][Latin Greek Math]
[tf=file:newg8-regular, range=preset:greek]
\definefontfamily[mainface][rm][Latin Modern Roman]
\definefontfamily[mainface][tt][GreekTT][tf=file:newg8-regular]
\definefontfamily[mainface][ss][GaraMath][tf=file:newg8-regular]

\setupbodyfont[mainface]

\starttext
α ⋀ {\tt α} a{\ss a}b{\ss b}c{\ss c}g{\ss g}
\stoptext

If another "key=value" pair is specified, "tf=file:newg8-regular"
doesn’t seem to work.

What am I doing wrong?
Don’t write just some garbage as third argument for the 
\definefontfamily or \definefallbackfamily commands.


In the attached picture you can see the fonforge information for the 
font names,

needed for the \definefontfamily command is the "family name" value.

\definefallbackfamily[mainface][rm][GaramondNo8][scale=0.88,range=0x22C0]

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
___

Re: [NTG-context] issue with font loading

2016-03-02 Thread Pablo Rodriguez
On 03/02/2016 04:56 PM, Pablo Rodriguez wrote:
> On 03/02/2016 03:59 PM, Wolfgang Schuster wrote:
>>
>> The \definefontfamily can only use font which are indexed by context
>> (mtxrun --script font --reload) which doesn’t seem to be the case here.

Wolfgang,

I’m afraid that even with that, I’m afraid it doesn’t work well:

\definefallbackfamily[mainface][rm][Latin Modern Math]
[tf=file:newg8-regular, scale=0.88, range=0x22C0]
\definefallbackfamily[mainface][rm][Latin Greek Math]
[tf=file:newg8-regular, range=preset:greek]
\definefontfamily[mainface][rm][Latin Modern Roman]
\definefontfamily[mainface][tt][GreekTT][tf=file:newg8-regular]
\definefontfamily[mainface][ss][GaraMath][tf=file:newg8-regular]

\setupbodyfont[mainface]

\starttext
α ⋀ {\tt α} a{\ss a}b{\ss b}c{\ss c}g{\ss g}
\stoptext

If another "key=value" pair is specified, "tf=file:newg8-regular"
doesn’t seem to work.

What am I doing wrong?

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] issue with font loading

2016-03-02 Thread Pablo Rodriguez
On 03/02/2016 03:59 PM, Wolfgang Schuster wrote:
> 
> The \definefontfamily can only use font which are indexed by context
> (mtxrun --script font --reload) which doesn’t seem to be the case here.

Even if the font is on the same directory as the ConTeXt source file? I
invoke it by its file name.

Sorry, this was outside the ConTeXt tree. And I didn’t know that it has
to be indexed by ConTeXt.

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] issue with font loading

2016-03-02 Thread Wolfgang Schuster

Pablo Rodriguez 
2. März 2016 um 15:43

Wolfgang,

I’m afraid it doesn’t work.

Just in case it helps, directly generated from
http://github.com/rbrito/urw-garamond/, you have the font itsef at
http://ousia.tk/newg8-regular.otf.

Many thanks for your help,


Pablo
Wolfgang Schuster 
2. März 2016 um 14:54
Does this work?

\definefontfamily[mainface][ss][GaraMath][tf=file:newg8-regular]

Wolfgang
Pablo Rodriguez 
2. März 2016 um 12:11
Dear list,

I have the following sample:

\definefontfamily[mainface][rm][Latin Modern Roman]
\definefontfamily[mainface][ss][GaraMath][file={newg8-regular.otf}]

\setupbodyfont[mainface]

\starttext
a{\ss a}b{\ss b}c{\ss c}g{\ss g}
\stoptext

I don’t get a sans typeface different from Latin Modern Roman.

If the font is on the same directory as the ConTeXt source file, what is
wrong in my code?
The \definefontfamily can only use font which are indexed by context 
(mtxrun --script font --reload) which doesn’t seem to be the case here.


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
___

Re: [NTG-context] issue with font loading

2016-03-02 Thread Pablo Rodriguez
On 03/02/2016 02:54 PM, Wolfgang Schuster wrote:
>> Pablo Rodriguez 2. März 2016 um 12:11
>> [...]
>> \definefontfamily[mainface][rm][Latin Modern Roman]
>> \definefontfamily[mainface][ss][GaraMath][file={newg8-regular.otf}]
> 
> Does this work?
> 
> \definefontfamily[mainface][ss][GaraMath][tf=file:newg8-regular]

Wolfgang,

I’m afraid it doesn’t work.

Just in case it helps, directly generated from
http://github.com/rbrito/urw-garamond/, you have the font itsef at
http://ousia.tk/newg8-regular.otf.

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] issue with font loading

2016-03-02 Thread Wolfgang Schuster

Pablo Rodriguez 
2. März 2016 um 12:11
Dear list,

I have the following sample:

\definefontfamily[mainface][rm][Latin Modern Roman]
\definefontfamily[mainface][ss][GaraMath][file={newg8-regular.otf}]

Does this work?

\definefontfamily[mainface][ss][GaraMath][tf=file:newg8-regular]

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
___

Re: [NTG-context] issue with font loading

2016-03-02 Thread Hans Hagen

On 3/2/2016 1:07 PM, Pablo Rodriguez wrote:

On 03/02/2016 12:28 PM, Hans Hagen wrote:

On 3/2/2016 12:11 PM, Pablo Rodriguez wrote:

[...]
I don’t get a sans typeface different from Latin Modern Roman.

If the font is on the same directory as the ConTeXt source file, what is
wrong in my code?


doesn't the log tell you something


Many thanks for your reply, Hans.

searching for font in the log file, this is what I get:

fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > 2 > 3 > /home/ousia/a.tex
fonts   > preloading modern-designsize (math)
fonts   > typescripts > unknown library 'modern-designsize'
fonts   > 'fallback modern-designsize mm 12pt' is loaded
fonts   > preloading modern-designsize (mono)
fonts   > 'fallback modern-designsize tt 12pt' is loaded

used file   >6: filename=lmroman10-regular.otf filetype=otf
format=otf
foundname=/home/ousia/ctxbeta/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otf
usedmethod=database

mkiv lua stats  > loaded fonts: 1 files: lmroman10-regular.otf
mkiv lua stats  > font engine: otf 3.013, afm 1.500, tfm 1.000, 4
instances, 3 shared in backend, 1 common vectors, 2 common hashes, load
time 0.060 seconds

Same results (no font embedding) with latest stable version from the
ConTeXt Suite.

If you want me to, I can attach the font itself in a private message (it
is URW Garamond [no copyright infringement, unless you plan to sell it
;-)]).


i think Wolfgang has to answer it .. he knows that define*family 
mechanism better


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] issue with font loading

2016-03-02 Thread Pablo Rodriguez
On 03/02/2016 12:28 PM, Hans Hagen wrote:
> On 3/2/2016 12:11 PM, Pablo Rodriguez wrote:
>> [...]
>> I don’t get a sans typeface different from Latin Modern Roman.
>>
>> If the font is on the same directory as the ConTeXt source file, what is
>> wrong in my code?
> 
> doesn't the log tell you something

Many thanks for your reply, Hans.

searching for font in the log file, this is what I get:

fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > 2 > 3 > /home/ousia/a.tex
fonts   > preloading modern-designsize (math)
fonts   > typescripts > unknown library 'modern-designsize'
fonts   > 'fallback modern-designsize mm 12pt' is loaded
fonts   > preloading modern-designsize (mono)
fonts   > 'fallback modern-designsize tt 12pt' is loaded

used file   >6: filename=lmroman10-regular.otf filetype=otf
format=otf
foundname=/home/ousia/ctxbeta/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otf
usedmethod=database

mkiv lua stats  > loaded fonts: 1 files: lmroman10-regular.otf
mkiv lua stats  > font engine: otf 3.013, afm 1.500, tfm 1.000, 4
instances, 3 shared in backend, 1 common vectors, 2 common hashes, load
time 0.060 seconds

Same results (no font embedding) with latest stable version from the
ConTeXt Suite.

If you want me to, I can attach the font itself in a private message (it
is URW Garamond [no copyright infringement, unless you plan to sell it
;-)]).

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] issue with font loading

2016-03-02 Thread Hans Hagen

On 3/2/2016 12:11 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \definefontfamily[mainface][rm][Latin Modern Roman]
 \definefontfamily[mainface][ss][GaraMath][file={newg8-regular.otf}]

 \setupbodyfont[mainface]

 \starttext
 a{\ss a}b{\ss b}c{\ss c}g{\ss g}
 \stoptext

I don’t get a sans typeface different from Latin Modern Roman.

If the font is on the same directory as the ConTeXt source file, what is
wrong in my code?


doesn't the log tell you something

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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
___

[NTG-context] issue with font loading

2016-03-02 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\definefontfamily[mainface][rm][Latin Modern Roman]
\definefontfamily[mainface][ss][GaraMath][file={newg8-regular.otf}]

\setupbodyfont[mainface]

\starttext
a{\ss a}b{\ss b}c{\ss c}g{\ss g}
\stoptext

I don’t get a sans typeface different from Latin Modern Roman.

If the font is on the same directory as the ConTeXt source file, what is
wrong in my code?

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] issue with font and lua code

2015-07-24 Thread Hans Hagen

On 7/20/2015 6:49 PM, Pablo Rodriguez wrote:

Hans,

I have the following sample (it includes Lua code for underscore
hyphenation):

 \startluacode
 function document.addfunnyhyphen(tfmdata)
 local underscore = utf.byte(_)
 local char   = tfmdata.characters[underscore]
 if not char then return end
 tfmdata.characters[0xFE000]   = {
 width= 0,
 height   = 0,
 depth= 0,
 commands = {
 { right, -char.width },
 { down, char.depth },
 { slot, 1, underscore },
 }
 }
 end
 utilities.sequencers.appendaction(aftercopyingcharacters,
 after,document.addfunnyhyphen)
 \stopluacode

 \definehyphenationfeatures
 [underscore]
 [righthyphenchar=FE000]

 \setuphyphenation
 [method=traditional]

 \sethyphenationfeatures
 [strict]

 \definefontfamily[svb][rm][SV Basic Manual]

 \setupbodyfont[svb]

 \starttext
 \hyphenatedword{legibility}
 \stoptext

For some reason, the font gives the following error with the Lua code
(font can be downloaded from http://dl.dafont.com/dl/?f=sv_basic_manual):

lua errorlua error on line 33 in file svb.tex:
.../ctxbeta/tex/texmf-context/tex/context/base/font-ctx.lua:1194: bad
argument #9 to 'define' (number expected, got nil)
stack traceback:
[C]: in function 'define'
.../ctxbeta/tex/texmf-context/tex/context/base/font-ctx.lua:1194: in
function .../ctxbeta/tex/texmf-context/tex/context/base/font-ctx.lua:1049
33   \setupbodyfont[svb]

The weird thing here is that the Lua code isn’t applied to the
problematic font.

Is there a way to fix this strange interaction?


in that font the underscore has no depth, so:

commands = {
{ right, -char.width },
{ down, char.depth or 0 },
{ slot, 1, underscore },
}

-
  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] issue with font and lua code

2015-07-24 Thread Pablo Rodriguez
On 07/24/2015 10:26 AM, Hans Hagen wrote:
 On 7/20/2015 6:49 PM, Pablo Rodriguez wrote:
 [...]
 For some reason, the font gives the following error with the Lua code
 (font can be downloaded from http://dl.dafont.com/dl/?f=sv_basic_manual):

 lua errorlua error on line 33 in file svb.tex:
 .../ctxbeta/tex/texmf-context/tex/context/base/font-ctx.lua:1194: bad
 argument #9 to 'define' (number expected, got nil)
 stack traceback:
  [C]: in function 'define'
  .../ctxbeta/tex/texmf-context/tex/context/base/font-ctx.lua:1194: in
 function .../ctxbeta/tex/texmf-context/tex/context/base/font-ctx.lua:1049
 33   \setupbodyfont[svb]

 The weird thing here is that the Lua code isn’t applied to the
 problematic font.

 Is there a way to fix this strange interaction?
 
 in that font the underscore has no depth, so:
 
  commands = {
  { right, -char.width },
  { down, char.depth or 0 },
  { slot, 1, underscore },
  }

Many thanks for your reply and for the fix, Hans.

It works like charm.


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
___

[NTG-context] issue with font and lua code

2015-07-20 Thread Pablo Rodriguez
Hans,

I have the following sample (it includes Lua code for underscore
hyphenation):

\startluacode
function document.addfunnyhyphen(tfmdata)
local underscore = utf.byte(_)
local char   = tfmdata.characters[underscore]
if not char then return end
tfmdata.characters[0xFE000]   = {
width= 0,
height   = 0,
depth= 0,
commands = {
{ right, -char.width },
{ down, char.depth },
{ slot, 1, underscore },
}
}
end
utilities.sequencers.appendaction(aftercopyingcharacters,
after,document.addfunnyhyphen)
\stopluacode

\definehyphenationfeatures
[underscore]
[righthyphenchar=FE000]

\setuphyphenation
[method=traditional]

\sethyphenationfeatures
[strict]

\definefontfamily[svb][rm][SV Basic Manual]

\setupbodyfont[svb]

\starttext
\hyphenatedword{legibility}
\stoptext

For some reason, the font gives the following error with the Lua code
(font can be downloaded from http://dl.dafont.com/dl/?f=sv_basic_manual):

lua errorlua error on line 33 in file svb.tex:
.../ctxbeta/tex/texmf-context/tex/context/base/font-ctx.lua:1194: bad
argument #9 to 'define' (number expected, got nil)
stack traceback:
[C]: in function 'define'
.../ctxbeta/tex/texmf-context/tex/context/base/font-ctx.lua:1194: in
function .../ctxbeta/tex/texmf-context/tex/context/base/font-ctx.lua:1049
33   \setupbodyfont[svb]

The weird thing here is that the Lua code isn’t applied to the
problematic font.

Is there a way to fix this strange interaction?

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
___

[NTG-context] issue with font sizes

2015-06-21 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\definefontfamily
[anothersans]
[ss]
[DejaVu Sans]

\starttext
\tfxx smaller text with \anothersans\ss second sans.
\stoptext

I need to add an alternative ss and tt font. The problem is that when
changing the typeface, I get the normal font size.

Is this a bug or a feature? How could I avoid it?

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
___

[NTG-context] issue with font in typing environment

2014-02-02 Thread Pablo Rodriguez
Dear list,

I converted the monospace fonts of txfonts
(http://www.ctan.org/tex-archive/fonts/txfonts/pfb) from pbf to otf
using FontForge. They work fine (http://www.ousia.tk/ryfonts.zip).

But the issue is shown in the following sample (beta from 2014.02.01 14:22):

\definefontfamily[mainface][mono][ryt1xtt][bf=ryt1xbtt]
\setupbodyfont[mainface]
\definetyping[TeXcode][option=TEX]
\starttext
\starttyping
\ConTeXt\ is
\stoptyping
\startTeXcode
\ConTeXt\ is
\stopTeXcode
\stoptext

If option=TEX is enabled, there is no space after the backslash.

I have checked the font and it seems to work fine, so it might be a bug.

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] issue with font in typing environment

2014-02-02 Thread Wolfgang Schuster

Am 02.02.2014 um 09:33 schrieb Pablo Rodriguez oi...@gmx.es:

 Dear list,
 
 I converted the monospace fonts of txfonts
 (http://www.ctan.org/tex-archive/fonts/txfonts/pfb) from pbf to otf
 using FontForge. They work fine (http://www.ousia.tk/ryfonts.zip).
 
 But the issue is shown in the following sample (beta from 2014.02.01 14:22):
 
 \definefontfamily[mainface][mono][ryt1xtt][bf=ryt1xbtt]
 \setupbodyfont[mainface]
 \definetyping[TeXcode][option=TEX]
 \starttext
 \starttyping
 \ConTeXt\ is
 \stoptyping
 \startTeXcode
 \ConTeXt\ is
 \stopTeXcode
 \stoptext
 
 If option=TEX is enabled, there is no space after the backslash.
 
 I have checked the font and it seems to work fine, so it might be a bug.

I can reproduce the problem with the type1 fonts:

\starttypescript[serif][txfonts]
  \setups[font:fallback:serif]
  \definefontsynonym [Serif] [file:t1xtt.afm]   [features=complete]
  \definefontsynonym [SerifBold] [file:t1xbtt.afm]  [features=complete]
  \definefontsynonym [SerifCaps] [file:t1xttsc.afm] [features=complete]
\stoptypescript

\starttypescript[mono][txfonts]
  \setups[font:fallback:mono]
  \definefontsynonym [Mono] [file:t1xtt.afm]   [features=none]
  \definefontsynonym [MonoBold] [file:t1xbtt.afm]  [features=none]
\stoptypescript

\definetypeface [mainface] [rm] [serif] [txfonts] [default]
\definetypeface [mainface] [tt] [mono]  [txfonts] [default]

\setupbodyfont[mainface]

\starttext

Regular, {\bf Bold} and {\sc Smallcaps}.

\starttyping[option=tex]
\CONTEXT\ is wonderful!
\stoptyping

\stoptext


Even though this is something that should be fixed using a different font
in truetype/opentype format solves your problem as well. The following
two fonts are similar to the monospaced font of the txfonts package:

- http://www.fontsquirrel.com/fonts/Luxi-Mono
- http://www.fontsquirrel.com/fonts/pt-mono

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
___


Re: [NTG-context] issue with font in typing environment

2014-02-02 Thread Pablo Rodriguez
On 02/02/2014 10:53 AM, Wolfgang Schuster wrote:
 Am 02.02.2014 um 09:33 schrieb Pablo Rodriguez oi...@gmx.es:

 I converted the monospace fonts of txfonts
 (http://www.ctan.org/tex-archive/fonts/txfonts/pfb) from pbf to otf
 using FontForge. They work fine (http://www.ousia.tk/ryfonts.zip).
 [...]
 If option=TEX is enabled, there is no space after the backslash.
 
 I can reproduce the problem with the type1 fonts:
 [...]
 Even though this is something that should be fixed using a different font
 in truetype/opentype format solves your problem as well. The following
 two fonts are similar to the monospaced font of the txfonts package:

Many thanks for the reply, Wolfgang.

Is there no way to tell what is wrong in the font, so it could be fixed?

BTW, I’m afraid I cannot compile your sample.

Many thanks again 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] issue with font in typing environment

2014-02-02 Thread Wolfgang Schuster

Am 02.02.2014 um 12:34 schrieb Pablo Rodriguez oi...@gmx.es:

 On 02/02/2014 10:53 AM, Wolfgang Schuster wrote:
 Am 02.02.2014 um 09:33 schrieb Pablo Rodriguez oi...@gmx.es:
 
 I converted the monospace fonts of txfonts
 (http://www.ctan.org/tex-archive/fonts/txfonts/pfb) from pbf to otf
 using FontForge. They work fine (http://www.ousia.tk/ryfonts.zip).
 [...]
 If option=TEX is enabled, there is no space after the backslash.
 
 I can reproduce the problem with the type1 fonts:
 [...]
 Even though this is something that should be fixed using a different font
 in truetype/opentype format solves your problem as well. The following
 two fonts are similar to the monospaced font of the txfonts package:
 
 Many thanks for the reply, Wolfgang.
 
 Is there no way to tell what is wrong in the font, so it could be fixed?

I think the missing space in the font is the problem because after I replaced
the visible space with a normal space there was also a space after the backslash
in the typing environment.

 BTW, I’m afraid I cannot compile your sample.

My example uses the type1 version of the font from CTAN, you have to put
the afm and pfb files into the fonts folder of your tex directory.

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
___


Re: [NTG-context] issue with font in typing environment

2014-02-02 Thread Pablo Rodriguez
On 02/02/2014 02:14 PM, Wolfgang Schuster wrote:
 Am 02.02.2014 um 12:34 schrieb Pablo Rodriguez oi...@gmx.es:
 [...]
 Is there no way to tell what is wrong in the font, so it could be fixed?
 
 I think the missing space in the font is the problem because after I replaced
 the visible space with a normal space there was also a space after the 
 backslash
 in the typing environment.

Many thanks for the reply, Wolfgang.

You are right. The space was missing in the font. I defined it and it
works fine now.

Many thanks again 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
___