[NTG-context] Problem with Cambria

2024-08-16 Thread Lutz Haseloff
Hi Hans, hi all,

the latest ConTeXt lmtx seems to have a problem with MS Cambria.

My file is:

\setupbodyfont[cambria]
\definefont[symbola][file:symbola*default at 10pt]
\starttext
\startMPpage[offset=1dk]
draw textext("AC{\symbola ⚡}DC");
\stopMPpage
\stoptext

mtxrun finde the font:

➜  ~ mtxrun --script font --list --pattern=cambria --all
identifier   familynamefontnamefilename 
   subfont   instances

cambria  cambria   cambria 
/home/lutz/fonts/winfont/cambria.ttc1
cambriabold  cambria   cambriabold 
/home/lutz/fonts/winfont/cambriab.ttf
cambriabolditaliccambria   cambriabolditalic   
/home/lutz/fonts/winfont/cambriaz.ttf
cambriaitaliccambria   cambriaitalic   
/home/lutz/fonts/winfont/cambriai.ttf
cambriamathnormalcambriamath   cambriamath 
/home/lutz/fonts/winfont/cambria.ttc2
cambriamathregular   cambriamath   cambriamath 
/home/lutz/fonts/winfont/cambria.ttc2
cambrianormalcambria   cambriaitalic   
/home/lutz/fonts/winfont/cambriai.ttf
cambriaregular   cambria   cambria 
/home/lutz/fonts/winfont/cambria.ttc1


ConTeXt doesn't.
logfile:

open source > level 2, order 3, name 
'/home/lutz/lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-cambria.mkiv'
open source > level 3, order 4, name 
'/home/lutz/lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv'
close source> level 3, order 4, name 
'/home/lutz/lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv'
close source> level 2, order 4, name 
'/home/lutz/lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-cambria.mkiv'
fonts   > defining > forced type 'ttf' of 'cambria' not found
fonts   > defining > unable to define 'cambria.ttf' as 
'cambria-12pt-rm-tf-0--0'
fonts   > defining > forced type 'ttf' of 'cambmath' not found
fonts   > defining > unable to define 'cambmath.ttf' as 
'cambria-12pt-mm-mr--3'
fonts   > defining > unable to define 'cambmath.ttf' as 
'cambria-12pt-mm-mr--2'
fonts   > defining > unable to define 'cambmath.ttf' as 
'cambria-12pt-mm-mr--1'
fonts   > defining > unable to define 'cambmath.ttf' as 
'cambria-12pt-mm-mb--3'
fonts   > defining > unable to define 'cambmath.ttf' as 
'cambria-12pt-mm-mb--2'
fonts   > defining > unable to define 'cambmath.ttf' as 
'cambria-12pt-mm-mb--1'

Greetings
Lutz Haseloff___
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] Problem with Cambria

2016-09-27 Thread Lutz Haseloff
Sorry, it was my fault.
I updated my Cambria and all went well (with Cambria).

btw. Congratulations to luatex 1.0.0!

Hans Hagen  schrieb am Sa., 24. Sep. 2016 um 12:57 Uhr:

> On 9/23/2016 7:53 PM, Lutz Haseloff wrote:
> > Hi all,
> >
> > i found a Problem with Cambria. The use of í and ì results in wrong
> kerning.
> >
> > \setupbodyfont[cambria]
> > \starttext
> > Víctor Lidio Jara Martínez
> > \stoptext
> >
> > gives:
> >
> > Ví ctor Lidio Jara Martí nez
>
> no such problem here
>
>
> -
>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://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] Problem with Cambria

2016-09-24 Thread Hans Hagen

On 9/23/2016 7:53 PM, Lutz Haseloff wrote:

Hi all,

i found a Problem with Cambria. The use of í and ì results in wrong kerning.

\setupbodyfont[cambria]
\starttext
Víctor Lidio Jara Martínez
\stoptext

gives:

Ví ctor Lidio Jara Martí nez


no such problem here


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

[NTG-context] Problem with Cambria

2016-09-23 Thread Lutz Haseloff
Hi all,

i found a Problem with Cambria. The use of í and ì results in wrong kerning.

\setupbodyfont[cambria]
\starttext
Víctor Lidio Jara Martínez
\stoptext

gives:

Ví ctor Lidio Jara Martí nez

in the pdf.

I use latest context and luatex on Windows and Linux.


Greetings Lutz
___
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] Problem with Cambria

2016-09-20 Thread Lutz Haseloff
Hi all,

i found a Problem with Cambria. The use of í and ì results in wrong kerning.

\setupbodyfont[cambria]
\starttext
Víctor Lidio Jara Martínez
\stoptext

gives:

Ví ctor Lidio Jara Martí nez

in the pdf.

I use latest context and luatex on Windows and Linux.


Greetings Lutz
___
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] Problem with Cambria (in Windows)

2016-04-21 Thread luigi scarso
On Thu, Apr 21, 2016 at 9:07 AM, Mari Voipio  wrote:

>
> and that fixed the problem. It's nice to know that truetype
> collections (.ttc) are not a problem for ConTeXt.
>
> almost never...


-- 
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] Problem with Cambria (in Windows)

2016-04-21 Thread Mari Voipio
On Tue, Apr 19, 2016 at 3:43 PM, Wolfgang Schuster
 wrote:
> 1. You can try to reload the font database with "mtxrun --script fonts
> --reload --force"
>and try it again.

This did the trick! Now I get

cambriaregular   cambria c:/windows/fonts/cambria.ttcindex:1

and that fixed the problem. It's nice to know that truetype
collections (.ttc) are not a problem for ConTeXt.


Thank you very much for your help, Wolfgang!



Mari
___
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] Problem with Cambria (in Windows)

2016-04-19 Thread Wolfgang Schuster

Mari Voipio 
19. April 2016 um 08:09
Hi Wolfgang,

here's what I get:


c:\context>mtxrun -script font --list --all cambria*

cambria cambriabolditalic c:/windows/fonts/cambriaz.ttf
cambriabold cambriabold c:/windows/fonts/cambriab.ttf
cambriabolditalic cambriabolditalic c:/windows/fonts/cambriaz.ttf
cambriaitalic cambriaitalic c:/windows/fonts/cambriai.ttf
cambriamath cambriamath c:/windows/fonts/cambria.ttc index:
2
cambriamathnormal cambriamath c:/windows/fonts/cambria.ttc index:
2
cambriamathregular cambriamath c:/windows/fonts/cambria.ttc index:
2
cambrianormal cambriaitalic c:/windows/fonts/cambriai.ttf


Doesn't look good, does it. Windows Fonts shows Cambria Regular (and I
can use it in e.g. Word) and then bold, italic and bold italic, but it
seems like the regular is gone from the list above. I may have a
problem...
1. You can try to reload the font database with "mtxrun --script fonts 
--reload --force"

   and try it again.

2. You can write your own typescripts for cambria (the existing ones 
rely on normalized
   names to support various versions of cambria which use different 
file names).


3. You can use the \definefontfamily command to load the fonts.

%% begin example
\definefontfamily [manuals] [rm] [Cambria]
\definefontfamily [manuals] [ss] [Calibri] [scale=0.95]
\definefontfamily [manuals] [tt] [Courier] [scale=0.90]
\definefontfamily [manuals] [mm] [Cambria Math]

\setupbodyfont[manuals,10pt]

\starttext

\input tufte

\stoptext
%% end example

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] Problem with Cambria (in Windows)

2016-04-18 Thread Mari Voipio
Hi Wolfgang,

here's what I get:


c:\context>mtxrun -script font --list --all cambria*

cambria  cambriabolditalic   c:/windows/fonts/cambriaz.ttf
cambriabold  cambriabold c:/windows/fonts/cambriab.ttf
cambriabolditaliccambriabolditalic   c:/windows/fonts/cambriaz.ttf
cambriaitaliccambriaitalic   c:/windows/fonts/cambriai.ttf
cambriamath  cambriamath c:/windows/fonts/cambria.ttcindex:
 2
cambriamathnormalcambriamath c:/windows/fonts/cambria.ttcindex:
 2
cambriamathregular   cambriamath c:/windows/fonts/cambria.ttcindex:
 2
cambrianormalcambriaitalic   c:/windows/fonts/cambriai.ttf



Doesn't look good, does it. Windows Fonts shows Cambria Regular (and I
can use it in e.g. Word) and then bold, italic and bold italic, but it
seems like the regular is gone from the list above. I may have a
problem...


Thank you for your help,

Mari

On Mon, Apr 18, 2016 at 2:58 PM, Wolfgang Schuster
 wrote:
> Mari Voipio
> 18. April 2016 um 13:46
> Hi,
>
> after I updated my ConTeXt from a pretty old version (+1 year), my
> font system went bad. This used to work:
>
>
> \usemodule simplefonts % Do I need this?
>
> The simplefonts is frozen and the mechanism (although with different
> commands)
> is now part of the core.
>
> \starttypescript[Manuals]
> \definetypeface[Manuals] [rm] [serif] [cambria] [default] [rscale=0.95]
> \definetypeface[Manuals] [ss] [sans] [calibri] [default] [rscale=0.9]
> \definetypeface[Manuals] [tt] [mono] [courier] [default] [rscale=0.85]
> \stoptypescript
>
> \usetypescript[Manuals]
> \setupbodyfont[Manuals,10pt]
>
>
>
> \starttext
>
> \input tufte
>
> \stoptext
>
>
>
> However, now Cambria turns up as italic, not regular. As far as I
> know, my laptop hasn't changed during this period (still running
> Windows 7), so I suspect the problem arrived with my recent ConTeXt
> update (last updated this morning). Is there an easy solution or a
> workaround for this problem?
>
> What output do you get when you write this on the commandline:
>
> mtxrun --script font --list --all cambria*
>
> 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
> ___
___
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] Problem with Cambria (in Windows)

2016-04-18 Thread Wolfgang Schuster

Mari Voipio 
18. April 2016 um 13:46
Hi,

after I updated my ConTeXt from a pretty old version (+1 year), my
font system went bad. This used to work:


\usemodule simplefonts % Do I need this?
The simplefonts is frozen and the mechanism (although with different 
commands)

is now part of the core.

\starttypescript[Manuals]
\definetypeface[Manuals] [rm] [serif] [cambria] [default] [rscale=0.95]
\definetypeface[Manuals] [ss] [sans] [calibri] [default] [rscale=0.9]
\definetypeface[Manuals] [tt] [mono] [courier] [default] [rscale=0.85]
\stoptypescript

\usetypescript[Manuals]
\setupbodyfont[Manuals,10pt]



\starttext

\input tufte

\stoptext



However, now Cambria turns up as italic, not regular. As far as I
know, my laptop hasn't changed during this period (still running
Windows 7), so I suspect the problem arrived with my recent ConTeXt
update (last updated this morning). Is there an easy solution or a
workaround for this problem?

What output do you get when you write this on the commandline:

mtxrun --script font --list --all cambria*

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] Problem with Cambria (in Windows)

2016-04-18 Thread Mari Voipio
Hi,

after I updated my ConTeXt from a pretty old version (+1 year), my
font system went bad. This used to work:


\usemodule simplefonts % Do I need this?


\starttypescript[Manuals]
\definetypeface[Manuals] [rm] [serif] [cambria] [default] [rscale=0.95]
\definetypeface[Manuals] [ss] [sans] [calibri] [default] [rscale=0.9]
 \definetypeface[Manuals] [tt] [mono] [courier] [default] [rscale=0.85]
\stoptypescript

\usetypescript[Manuals]
\setupbodyfont[Manuals,10pt]



\starttext

\input tufte

\stoptext



However, now Cambria turns up as italic, not regular. As far as I
know, my laptop hasn't changed during this period (still running
Windows 7), so I suspect the problem arrived with my recent ConTeXt
update (last updated this morning). Is there an easy solution or a
workaround for this problem?


Thank you,

Mari


manual_font.log
Description: Binary data


manual_font.pdf
Description: Adobe PDF document


manual_font.tex
Description: TeX document
___
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
___