Re: [NTG-context] [ibmplex setup script]

2020-05-03 Thread Wolfgang Schuster

Floris van Manen schrieb am 03.05.2020 um 18:24:

I noticed that the same font test with the same lmtx versions on two
different linux machines with the same ibmplex fonts installed, return a
different rendering for the bold-italic.
That is only one produces the italics, the other doesn't.

I guess that is an example of true software magic,
or yet another evidence that one observation will invert the result of
the other ;-)


Even with this example:

\definefontfamily [mainface] [rm] [IBM Plex Serif]

%\definefontfamily [mainface] [rm] [IBM Plex Serif]
%  [tf=file:ibmplexserifthin,
%   it=file:ibmplexserifthinitalic,
%   bf=file:ibmplexserifregular,
%   bi=file:ibmplexserifitalic]

\definefontfamily [mainface] [ss] [IBM Plex Sans]

%\definefontfamily [mainface] [ss] [IBM Plex Sans]
%  [tf=file:ibmplexsansthin,
%   it=file:ibmplexsansthinitalic,
%   bf=file:ibmplexsansregular,
%   bi=file:ibmplexsansitalic]

%\definefontfamily [mainface] [tt] [IBM Plex Mono] [features=none]

\definefontfamily [mainface] [tt] [IBM Plex Mono]
  [features=none,
   tf=file:ibmplexmonothin,
   it=file:ibmplexmonothinitalic,
   bf=file:ibmplexmonoregular,
   bi=file:ibmplexmonoitalic]

\definefontfamily [mainface] [mm] [TeX Gyre Bonum Math]

\setupbodyfont[mainface]

\starttext

\rm
\tf Regular,
\it Italic,
\bf Bold and
\bi Bolditalic

\ss
\tf Regular,
\it Italic,
\bf Bold and
\bi Bolditalic

\tt
\tf Regular,
\it Italic,
\bf Bold and
\bi Bolditalic

\stoptext

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


Re: [NTG-context] [ibmplex setup script]

2020-05-03 Thread Floris van Manen
I noticed that the same font test with the same lmtx versions on two
different linux machines with the same ibmplex fonts installed, return a
different rendering for the bold-italic.
That is only one produces the italics, the other doesn't.

I guess that is an example of true software magic,
or yet another evidence that one observation will invert the result of
the other ;-)

.F


pEpkey.asc
Description: application/pgp-keys
___
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] [ibmplex setup script]

2020-05-03 Thread Henning Hraban Ramm

> Am 03.05.2020 um 13:36 schrieb Floris van Manen :
> 
> Hello Wolfgang,
> 
> 
> On 03-05-2020 10:49, Wolfgang Schuster wrote:
>> % Load IBM Plex with the regular width
>> 
>> % \setupbodyfont[ibmplex]
>> 
>> % Load IBM Plex with the thin width
>> 
>> %\setupbodyfont[ibmplex-thin]
> 
> 
> A quick follow-up question.
> 
> Apparently the thin/bold/italics combination does not work.
> I assume this is defined in a ibmplex-thin  file somwhere.
> If so, where is that file located?
> What is the formula to derive ibmplex-thin from the underlying font files?

If you can’t handle find | grep, you can use the source browser:

https://source.contextgarden.net/?search=ibmplex-thin

and you’ll find type-imp-plex.mkiv:

https://source.contextgarden.net/tex/context/fonts/mkiv/type-imp-plex.mkiv?search=ibmplex-thin

in there are the typescripts for all the weights.

And there’s actually a bug in the setup for light-bolditalic:


\edefinefontsynonym [\typescriptprefix{\typescriptone}\s!Bold]   
[\s!file:\typescriptprefix{n:plex\typescriptone}-light]  
[\s!features=\typescriptprefix{f:plex\typescriptone}]

\edefinefontsynonym [\typescriptprefix{\typescriptone}\s!BoldItalic] 
[\s!file:\typescriptprefix{n:plex\typescriptone}-light]  
[\s!features=\typescriptprefix{f:plex\typescriptone}]

That should be -lightitalic


Best, Hraban
___
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] [ibmplex setup script]

2020-05-03 Thread Floris van Manen
Hello Wolfgang,


On 03-05-2020 10:49, Wolfgang Schuster wrote:
> % Load IBM Plex with the regular width
> 
> % \setupbodyfont[ibmplex]
> 
> % Load IBM Plex with the thin width
> 
> %\setupbodyfont[ibmplex-thin]


A quick follow-up question.

Apparently the thin/bold/italics combination does not work.
I assume this is defined in a ibmplex-thin  file somwhere.
If so, where is that file located?
What is the formula to derive ibmplex-thin from the underlying font files?

.Floris


pEpkey.asc
Description: application/pgp-keys
___
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] [ibmplex setup script]

2020-05-03 Thread Floris van Manen
Thank you Wolfgang!

Your example works as intended.

I really get lost in the font definition files, as it is difficult to
understand which variable point to what other definition.

Is there a (simple) picture where the scripts are annotated with arrows,
to know which variable points to where? All the way back to the
mtxrun --script fonts --list --all --pattern=*
reply?
With all the options available it is a steep learning curve, but i hope
to be able to understand it at some point.

Thanks for the working solution.
.Floris




pEpkey.asc
Description: application/pgp-keys
___
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] [ibmplex setup script]

2020-05-03 Thread Wolfgang Schuster

Floris van Manen schrieb am 03.05.2020 um 00:20:


At present the ibmplexmonothin font is seen by the mtxrun script

  mtxrun --script fonts --list --all --pattern=ibmplexmonothin*
identifier  familynamefontnamefilename
subfont   instances

ibmplexmonothin ibmplexmono   ibmplexmonothin
/home/vm/.local/share/fonts/Unknown Vendor/OpenType/IBM Plex
Mono/IBM_Plex_Mono_Thin.otf
ibmplexmonothinitalic   ibmplexmono   ibmplexmonothinitalic
/home/vm/.local/share/fonts/Unknown Vendor/OpenType/IBM Plex
Mono/IBM_Plex_Mono_Thin_Italic.otf

But I don't manage to get the monothin variants loaded.
Any hints available?


Comes already comes with typescript for IBM Plex and you either
load one of the predefined setups or create your own combination.


\usetypescriptfile[ibmplex]

% Load IBM Plex with the regular width

% \setupbodyfont[ibmplex]

% Load IBM Plex with the thin width

%\setupbodyfont[ibmplex-thin]

% Custom setup with regular for serif and sans serif
% but thin as default for monospaced

\definetypeface [ibmplex] [rm] [serif] [ibmplex]  [default]
\definetypeface [ibmplex] [ss] [sans]  [ibmplex]  [default]
\definetypeface [ibmplex] [tt] [mono]  [ibmplex-thin] [default]
\definetypeface [ibmplex] [mm] [math]  [pagella]  [default]

\setupbodyfont [ibmplex]

\starttext

\rm
\tf Regular,
\it Italic,
\bf Bold and
\bi Bolditalic

\tt
\tf Regular,
\it Italic,
\bf Bold and
\bi Bolditalic

\stoptext

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


[NTG-context] [ibmplex setup script]

2020-05-02 Thread Floris van Manen

At present the ibmplexmonothin font is seen by the mtxrun script

 mtxrun --script fonts --list --all --pattern=ibmplexmonothin*
identifier  familynamefontnamefilename
subfont   instances

ibmplexmonothin ibmplexmono   ibmplexmonothin
/home/vm/.local/share/fonts/Unknown Vendor/OpenType/IBM Plex
Mono/IBM_Plex_Mono_Thin.otf
ibmplexmonothinitalic   ibmplexmono   ibmplexmonothinitalic
/home/vm/.local/share/fonts/Unknown Vendor/OpenType/IBM Plex
Mono/IBM_Plex_Mono_Thin_Italic.otf

But I don't manage to get the monothin variants loaded.
Any hints available?


Thanks
.Floris



pEpkey.asc
Description: application/pgp-keys
___
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
___