ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Handling Semi-Bold for Minion Pro in Context (LuaTeX)
@ 2016-05-02  9:19 Antoine Cailliau
  2016-05-02 18:35 ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Antoine Cailliau @ 2016-05-02  9:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1672 bytes --]

Hello,

I'm trying to use the font Minion Pro for my document. I'm using the
simplefont module but I cannot use the semibold font. I guess I'm missing
some line in the configuration to bind sb to the semibold variant. Here is
a short example of my setup:

\definefontalternative[sb]
\definefontalternative[sbi]

\definefontfeature[default][default]
[mode=node,
script=latn,
kern=yes,
palt=yes,
tlig=yes,
trep=yes,
init=yes,
size=yes]
\definefontfeature[frac][default][frac=yes]
\definefontfeature[sups][default][sups=yes]
\definefontfeature[onum][default][onum=yes]
\definefontfeature[lnum][default][lnum=yes]

\definefontfamily [myfamily] [serif] [MinionPro]
\definefontfamily [myfamily] [sans]  [MyriadPro]

\setupbodyfont [myfamily]

\define[1]\sup{\feature[+][f:superscript]#1}
\defineparagraphs[TwoColumns][n=2, align={hz, hanging}]
\setupparagraphs[TwoColumns][1][width=100pt, style=italic, align=left]

\starttext

\startbuffer[Plato]
How you, O Athenians, have been affected by my accusers, I cannot tell;
but I know that they almost made me forget who I was--so persuasively
did they speak; and yet they have hardly uttered a word of truth.
\stopbuffer

\startTwoColumns
Roman\TwoColumns
\getbuffer[Plato]
\stopTwoColumns

\startTwoColumns
Italic\TwoColumns
{\it\getbuffer[Plato]}
\stopTwoColumns

\startTwoColumns
Semi bold\TwoColumns
{\sb\getbuffer[Plato]}
\stopTwoColumns

\startTwoColumns
Bold\TwoColumns
{\bf\getbuffer[Plato]}
\stopTwoColumns

\startTwoColumns
Semi bold italic\TwoColumns
{\sbi\getbuffer[Plato]}
\stopTwoColumns

\startTwoColumns
Bold italic\TwoColumns
{\bi\getbuffer[Plato]}
\stopTwoColumns

\stoptext

Any help is deeply welcome,

Antoine

[-- Attachment #1.2: Type: text/html, Size: 2893 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 8+ messages in thread

* Re: Handling Semi-Bold for Minion Pro in Context (LuaTeX)
  2016-05-02  9:19 Handling Semi-Bold for Minion Pro in Context (LuaTeX) Antoine Cailliau
@ 2016-05-02 18:35 ` Wolfgang Schuster
  2016-05-03  6:58   ` Antoine Cailliau
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2016-05-02 18:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 419 bytes --]

> Antoine Cailliau <mailto:antoinecailliau@gmail.com>
> 2. Mai 2016 um 11:19
> Hello,
>
> I'm trying to use the font Minion Pro for my document. I'm using the 
> simplefont module but I cannot use the semibold font. I guess I'm 
> missing some line in the configuration to bind sb to the semibold variant.
The \definefontfamily command is limited to the default alternatives 
(tf, bf, it, sl, bi, bs ans sc).

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1446 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 8+ messages in thread

* Re: Handling Semi-Bold for Minion Pro in Context (LuaTeX)
  2016-05-02 18:35 ` Wolfgang Schuster
@ 2016-05-03  6:58   ` Antoine Cailliau
  2016-05-03 20:13     ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Antoine Cailliau @ 2016-05-03  6:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 188 bytes --]

>
> The \definefontfamily command is limited to the default alternatives (tf,
> bf, it, sl, bi, bs ans sc).
>

Thanks for your answer, what shall I use to define non-default
alternatives?

[-- Attachment #1.2: Type: text/html, Size: 513 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 8+ messages in thread

* Re: Handling Semi-Bold for Minion Pro in Context (LuaTeX)
  2016-05-03  6:58   ` Antoine Cailliau
@ 2016-05-03 20:13     ` Wolfgang Schuster
  2016-05-04  8:31       ` Antoine Cailliau
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2016-05-03 20:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1488 bytes --]

> Antoine Cailliau <mailto:antoinecailliau@gmail.com>
> 3. Mai 2016 um 08:58
>
>     The \definefontfamily command is limited to the default
>     alternatives (tf, bf, it, sl, bi, bs ans sc).
>
>
> Thanks for your answer, what shall I use to define non-default 
> alternatives?
At the moment your only option is to write your own typescript for the 
fonts.

\definefontalternative[sb]
\definefontalternative[si]

\starttypescript [sans] [source-sans]
   \definebodyfont [default] [ss]
     [tf=Sans             sa 1,
      it=SansItalic       sa 1,
      sb=SansMedium       sa 1,
      si=SansMediumItalic sa 1,
      bf=SansBold         sa 1,
      bi=SansBoldItalic   sa 1]
\stoptypescript

\starttypescript [sans] [source-sans]
     \definefontsynonym [Sans]             [file:SourceSansPro-Regular.otf]
     \definefontsynonym [SansItalic]       [file:SourceSansPro-It.otf]
     \definefontsynonym [SansMedium]       [file:SourceSansPro-Semibold.otf]
     \definefontsynonym [SansMediumItalic] 
[file:SourceSansPro-SemiboldIt.otf]
     \definefontsynonym [SansBold]         [file:SourceSansPro-Bold.otf]
     \definefontsynonym [SansBoldItalic]   [file:SourceSansPro-BoldIt.otf]
\stoptypescript

\definetypeface [source] [ss] [sans] [source-sans] [default] 
[features=default]
\definetypeface [source] [mm] [math] [xits]        [default]

\setupbodyfont[source]

\starttext

Upright {\it Italic} {\sb SemiBold} {\si SemiBoldItalic} {\bf Bold} {\bi 
BoldItalic}

\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 3547 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 8+ messages in thread

* Re: Handling Semi-Bold for Minion Pro in Context (LuaTeX)
  2016-05-03 20:13     ` Wolfgang Schuster
@ 2016-05-04  8:31       ` Antoine Cailliau
  2016-05-04 14:00         ` Antoine Cailliau
  2016-05-04 14:39         ` Wolfgang Schuster
  0 siblings, 2 replies; 8+ messages in thread
From: Antoine Cailliau @ 2016-05-04  8:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 8388 bytes --]

Thank you very much for the example. I got it working for the "regular"
style-alternative.

I don't know why, but the italic style-alternative do not work. In the log,
the font is not even loaded... Do you have an idea of what I'm doing wrong?

\definefontalternative[me]
\definefontalternative[meit]
\definefontalternative[se]
\definefontalternative[seit]

\starttypescript [serif] [minionpro]
  \definebodyfont [default] [rm]
    [tf=Serif                 sa 1,
     it=SerifItalic           sa 1,
     me=SerifMedium           sa 1,
     meit=SerifMediumItalic   sa 1,
     se=SerifSemiBold         sa 1,
     seit=SerifSemiBoldItalic sa 1,
     bf=SerifBold             sa 1,
     bi=SerifBoldItalic       sa 1]
\stoptypescript

\starttypescript [serif] [minionpro]
    \definefontsynonym [Serif]                [file:MinionPro-Regular.otf]
    \definefontsynonym [SerifItalic]          [file:MinionPro-It.otf]
    \definefontsynonym [SerifMedium]          [file:MinionPro-Medium.otf]
    \definefontsynonym [SerifMediumItalic]    [file:MinionPro-MediumIt.otf]
    \definefontsynonym [SerifSemiBold]        [file:MinionPro-Semibold.otf]
    \definefontsynonym [SerifSemiBoldItalic]
 [file:MinionPro-SemiboldIt.otf]
    \definefontsynonym [SerifBold]            [file:MinionPro-Bold.otf]
    \definefontsynonym [SerifBoldItalic]      [file:MinionPro-BoldIt.otf]
\stoptypescript

\definetypeface [source] [rm] [serif] [minionpro] [default]
[features=default]
\definetypeface [source] [mm] [math]  [xits]      [default]

----

mtx-context     | warning: synctex is enabled
mtx-context     | run 1: luatex
--fmt="/usr/local/texlive/2015/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en"
--jobname="font2"
--lua="/usr/local/texlive/2015/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui"
--no-parse-first-line --synctex=1 --c:autogenerate --c:currentrun=1
--c:directives="system.synctex=1" --c:fulljobname="./font2.tex"
--c:input="./font2.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:synctex="1"
"cont-yes.mkiv"
This is LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238)
 \write18 enabled.

system          > synctex functionality is enabled (1)!
open source     > 1 > 1 >
/usr/local/texlive/2015/texmf-dist/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2015.05.18 12:26 MKIV current  fmt: 2016.4.25  int:
english/english

system          > 'cont-new.mkiv' loaded
open source     > 2 > 2 >
/usr/local/texlive/2015/texmf-dist/tex/context/base/cont-new.mkiv
close source    > 2 > 2 >
/usr/local/texlive/2015/texmf-dist/tex/context/base/cont-new.mkiv
system          > files > jobname 'font2', input './font2', result 'font2'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > 2 > 3 > /Users/acailliau/Google
Drive/PhD/Dissertation/test-context/font2.tex
open source     > 3 > 4 >
/usr/local/texlive/2015/texmf-dist/tex/context/base/type-imp-xits.mkiv
open source     > 4 > 5 >
/usr/local/texlive/2015/texmf-dist/tex/context/base/type-imp-texgyre.mkiv
close source    > 4 > 5 >
/usr/local/texlive/2015/texmf-dist/tex/context/base/type-imp-texgyre.mkiv
close source    > 3 > 5 >
/usr/local/texlive/2015/texmf-dist/tex/context/base/type-imp-xits.mkiv
fonts           > preloading modern-designsize (mono)
*fonts           > typescripts > unknown library 'modern-designsize'*
*fonts           > 'fallback modern-designsize tt 12pt' is loaded*
backend         > xmp > using file
'/usr/local/texlive/2015/texmf-dist/tex/context/base/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1
close source    > 2 > 5 > /Users/acailliau/Google
Drive/PhD/Dissertation/test-context/font2.tex
close source    > 1 > 5 >
/usr/local/texlive/2015/texmf-dist/tex/context/base/cont-yes.mkiv

mkiv lua stats  > used config file:
selfautoparent:/texmfcnf.lua;selfautoparent:/texmf-dist/web2c/texmfcnf.lua
mkiv lua stats  > used cache path:
/usr/local/texlive/2015/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9
mkiv lua stats  > synctex tracing: synctex has been enabled (extra log file
generated)
mkiv lua stats  > resource resolver: loadtime 0.105 seconds, 0 scans with
scantime 0.000 seconds, 0 shared scans, 17 found files, scanned paths:
<none>
mkiv lua stats  > stored bytecode data: 371 modules (0.300 sec), 78 tables
(0.009 sec), 449 chunks (0.309 sec)
mkiv lua stats  > traced context: maxstack: 1132, freed: 0, unreachable:
1132
mkiv lua stats  > running in nuts mode: yes
mkiv lua stats  > cleaned up reserved nodes: 44 nodes, 439 lists of 438
mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 9 attribute, 35
glue_spec, 3 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 6 unique task lists, 5
instances (re)created, 202 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf
output)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: 577 direct, 762 indirect, 1339 total
mkiv lua stats  > randomizer: resumed with value 0.5377294446983
mkiv lua stats  > result saved in file: font2.pdf, compresslevel 3,
objectcompresslevel 3
*mkiv lua stats  > loaded fonts: 8 files: minionpro-bold.otf,
minionpro-boldit.otf, minionpro-it.otf, minionpro-medium.otf,
minionpro-regular.otf, minionpro-semibold.otf, xits-math.otf,
xits-mathbold.otf*
mkiv lua stats  > fonts load time: 0.275 seconds
mkiv lua stats  > used platform: osx-ppc, type: unix, binary subtree: bin
mkiv lua stats  > luatex banner: this is luatex, version beta-0.80.0 (tex
live 2015) (rev 5238)
mkiv lua stats  > control sequences: 42831 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua, used memory: 113 MB (ctx:
113 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.790 seconds, 1 processed pages, 1 shipped
pages, 1.266 pages/second

SyncTeX written on font2.synctex.gz.
system          | total runtime: 0.999 seconds


On 3 May 2016 at 22:13, Wolfgang Schuster <schuster.wolfgang@gmail.com>
wrote:

> Antoine Cailliau <antoinecailliau@gmail.com>
> 3. Mai 2016 um 08:58
>
>> The \definefontfamily command is limited to the default alternatives (tf,
>> bf, it, sl, bi, bs ans sc).
>>
>
> Thanks for your answer, what shall I use to define non-default
> alternatives?
>
> At the moment your only option is to write your own typescript for the
> fonts.
>
> \definefontalternative[sb]
> \definefontalternative[si]
>
> \starttypescript [sans] [source-sans]
>   \definebodyfont [default] [ss]
>     [tf=Sans             sa 1,
>      it=SansItalic       sa 1,
>      sb=SansMedium       sa 1,
>      si=SansMediumItalic sa 1,
>      bf=SansBold         sa 1,
>      bi=SansBoldItalic   sa 1]
> \stoptypescript
>
> \starttypescript [sans] [source-sans]
>     \definefontsynonym [Sans]             [file:SourceSansPro-Regular.otf]
>     \definefontsynonym [SansItalic]       [file:SourceSansPro-It.otf]
>     \definefontsynonym [SansMedium]       [file:SourceSansPro-Semibold.otf
> ]
>     \definefontsynonym [SansMediumItalic] [
> file:SourceSansPro-SemiboldIt.otf]
>     \definefontsynonym [SansBold]         [file:SourceSansPro-Bold.otf]
>     \definefontsynonym [SansBoldItalic]   [file:SourceSansPro-BoldIt.otf]
> \stoptypescript
>
> \definetypeface [source] [ss] [sans] [source-sans] [default]
> [features=default]
> \definetypeface [source] [mm] [math] [xits]        [default]
>
> \setupbodyfont[source]
>
> \starttext
>
> Upright {\it Italic} {\sb SemiBold} {\si SemiBoldItalic} {\bf Bold} {\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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 11944 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 8+ messages in thread

* Re: Handling Semi-Bold for Minion Pro in Context (LuaTeX)
  2016-05-04  8:31       ` Antoine Cailliau
@ 2016-05-04 14:00         ` Antoine Cailliau
  2016-05-04 14:39         ` Wolfgang Schuster
  1 sibling, 0 replies; 8+ messages in thread
From: Antoine Cailliau @ 2016-05-04 14:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 8932 bytes --]

For a compiled PDF, see
https://drive.google.com/open?id=0Bwo7pPA5_WkDdlNLbHdkMjg2dkU

Thanks in advance for the help :-)

On 4 May 2016 at 10:31, Antoine Cailliau <antoinecailliau@gmail.com> wrote:

> Thank you very much for the example. I got it working for the "regular"
> style-alternative.
>
> I don't know why, but the italic style-alternative do not work. In the
> log, the font is not even loaded... Do you have an idea of what I'm doing
> wrong?
>
> \definefontalternative[me]
> \definefontalternative[meit]
> \definefontalternative[se]
> \definefontalternative[seit]
>
> \starttypescript [serif] [minionpro]
>   \definebodyfont [default] [rm]
>     [tf=Serif                 sa 1,
>      it=SerifItalic           sa 1,
>      me=SerifMedium           sa 1,
>      meit=SerifMediumItalic   sa 1,
>      se=SerifSemiBold         sa 1,
>      seit=SerifSemiBoldItalic sa 1,
>      bf=SerifBold             sa 1,
>      bi=SerifBoldItalic       sa 1]
> \stoptypescript
>
> \starttypescript [serif] [minionpro]
>     \definefontsynonym [Serif]                [file:MinionPro-Regular.otf]
>     \definefontsynonym [SerifItalic]          [file:MinionPro-It.otf]
>     \definefontsynonym [SerifMedium]          [file:MinionPro-Medium.otf]
>     \definefontsynonym [SerifMediumItalic]    [file:MinionPro-MediumIt.otf]
>     \definefontsynonym [SerifSemiBold]        [file:MinionPro-Semibold.otf]
>     \definefontsynonym [SerifSemiBoldItalic]
>  [file:MinionPro-SemiboldIt.otf]
>     \definefontsynonym [SerifBold]            [file:MinionPro-Bold.otf]
>     \definefontsynonym [SerifBoldItalic]      [file:MinionPro-BoldIt.otf]
> \stoptypescript
>
> \definetypeface [source] [rm] [serif] [minionpro] [default]
> [features=default]
> \definetypeface [source] [mm] [math]  [xits]      [default]
>
> ----
>
> mtx-context     | warning: synctex is enabled
> mtx-context     | run 1: luatex
> --fmt="/usr/local/texlive/2015/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en"
> --jobname="font2"
> --lua="/usr/local/texlive/2015/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui"
> --no-parse-first-line --synctex=1 --c:autogenerate --c:currentrun=1
> --c:directives="system.synctex=1" --c:fulljobname="./font2.tex"
> --c:input="./font2.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:synctex="1"
> "cont-yes.mkiv"
> This is LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238)
>  \write18 enabled.
>
> system          > synctex functionality is enabled (1)!
> open source     > 1 > 1 >
> /usr/local/texlive/2015/texmf-dist/tex/context/base/cont-yes.mkiv
>
> ConTeXt  ver: 2015.05.18 12:26 MKIV current  fmt: 2016.4.25  int:
> english/english
>
> system          > 'cont-new.mkiv' loaded
> open source     > 2 > 2 >
> /usr/local/texlive/2015/texmf-dist/tex/context/base/cont-new.mkiv
> close source    > 2 > 2 >
> /usr/local/texlive/2015/texmf-dist/tex/context/base/cont-new.mkiv
> system          > files > jobname 'font2', input './font2', result 'font2'
> fonts           > latin modern fonts are not preloaded
> languages       > language 'en' is active
> open source     > 2 > 3 > /Users/acailliau/Google
> Drive/PhD/Dissertation/test-context/font2.tex
> open source     > 3 > 4 >
> /usr/local/texlive/2015/texmf-dist/tex/context/base/type-imp-xits.mkiv
> open source     > 4 > 5 >
> /usr/local/texlive/2015/texmf-dist/tex/context/base/type-imp-texgyre.mkiv
> close source    > 4 > 5 >
> /usr/local/texlive/2015/texmf-dist/tex/context/base/type-imp-texgyre.mkiv
> close source    > 3 > 5 >
> /usr/local/texlive/2015/texmf-dist/tex/context/base/type-imp-xits.mkiv
> fonts           > preloading modern-designsize (mono)
> *fonts           > typescripts > unknown library 'modern-designsize'*
> *fonts           > 'fallback modern-designsize tt 12pt' is loaded*
> backend         > xmp > using file
> '/usr/local/texlive/2015/texmf-dist/tex/context/base/lpdf-pdx.xml'
> pages           > flushing realpage 1, userpage 1
> close source    > 2 > 5 > /Users/acailliau/Google
> Drive/PhD/Dissertation/test-context/font2.tex
> close source    > 1 > 5 >
> /usr/local/texlive/2015/texmf-dist/tex/context/base/cont-yes.mkiv
>
> mkiv lua stats  > used config file:
> selfautoparent:/texmfcnf.lua;selfautoparent:/texmf-dist/web2c/texmfcnf.lua
> mkiv lua stats  > used cache path:
> /usr/local/texlive/2015/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9
> mkiv lua stats  > synctex tracing: synctex has been enabled (extra log
> file generated)
> mkiv lua stats  > resource resolver: loadtime 0.105 seconds, 0 scans with
> scantime 0.000 seconds, 0 shared scans, 17 found files, scanned paths:
> <none>
> mkiv lua stats  > stored bytecode data: 371 modules (0.300 sec), 78 tables
> (0.009 sec), 449 chunks (0.309 sec)
> mkiv lua stats  > traced context: maxstack: 1132, freed: 0, unreachable:
> 1132
> mkiv lua stats  > running in nuts mode: yes
> mkiv lua stats  > cleaned up reserved nodes: 44 nodes, 439 lists of 438
> mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 9 attribute, 35
> glue_spec, 3 attribute_list, 2 temp
> mkiv lua stats  > node list callback tasks: 6 unique task lists, 5
> instances (re)created, 202 calls
> mkiv lua stats  > used backend: pdf (backend for directly generating pdf
> output)
> mkiv lua stats  > loaded patterns: en::2, load time: 0.000
> mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.000 seconds loading
> mkiv lua stats  > callbacks: 577 direct, 762 indirect, 1339 total
> mkiv lua stats  > randomizer: resumed with value 0.5377294446983
> mkiv lua stats  > result saved in file: font2.pdf, compresslevel 3,
> objectcompresslevel 3
> *mkiv lua stats  > loaded fonts: 8 files: minionpro-bold.otf,
> minionpro-boldit.otf, minionpro-it.otf, minionpro-medium.otf,
> minionpro-regular.otf, minionpro-semibold.otf, xits-math.otf,
> xits-mathbold.otf*
> mkiv lua stats  > fonts load time: 0.275 seconds
> mkiv lua stats  > used platform: osx-ppc, type: unix, binary subtree: bin
> mkiv lua stats  > luatex banner: this is luatex, version beta-0.80.0 (tex
> live 2015) (rev 5238)
> mkiv lua stats  > control sequences: 42831 of 65536 + 100000
> mkiv lua stats  > lua properties: engine: lua, used memory: 113 MB (ctx:
> 113 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
> mkiv lua stats  > runtime: 0.790 seconds, 1 processed pages, 1 shipped
> pages, 1.266 pages/second
>
> SyncTeX written on font2.synctex.gz.
> system          | total runtime: 0.999 seconds
>
>
> On 3 May 2016 at 22:13, Wolfgang Schuster <schuster.wolfgang@gmail.com>
> wrote:
>
>> Antoine Cailliau <antoinecailliau@gmail.com>
>> 3. Mai 2016 um 08:58
>>
>>> The \definefontfamily command is limited to the default alternatives
>>> (tf, bf, it, sl, bi, bs ans sc).
>>>
>>
>> Thanks for your answer, what shall I use to define non-default
>> alternatives?
>>
>> At the moment your only option is to write your own typescript for the
>> fonts.
>>
>> \definefontalternative[sb]
>> \definefontalternative[si]
>>
>> \starttypescript [sans] [source-sans]
>>   \definebodyfont [default] [ss]
>>     [tf=Sans             sa 1,
>>      it=SansItalic       sa 1,
>>      sb=SansMedium       sa 1,
>>      si=SansMediumItalic sa 1,
>>      bf=SansBold         sa 1,
>>      bi=SansBoldItalic   sa 1]
>> \stoptypescript
>>
>> \starttypescript [sans] [source-sans]
>>     \definefontsynonym [Sans]             [file:SourceSansPro-Regular.otf
>> ]
>>     \definefontsynonym [SansItalic]       [file:SourceSansPro-It.otf]
>>     \definefontsynonym [SansMedium]       [
>> file:SourceSansPro-Semibold.otf]
>>     \definefontsynonym [SansMediumItalic] [
>> file:SourceSansPro-SemiboldIt.otf]
>>     \definefontsynonym [SansBold]         [file:SourceSansPro-Bold.otf]
>>     \definefontsynonym [SansBoldItalic]   [file:SourceSansPro-BoldIt.otf]
>> \stoptypescript
>>
>> \definetypeface [source] [ss] [sans] [source-sans] [default]
>> [features=default]
>> \definetypeface [source] [mm] [math] [xits]        [default]
>>
>> \setupbodyfont[source]
>>
>> \starttext
>>
>> Upright {\it Italic} {\sb SemiBold} {\si SemiBoldItalic} {\bf Bold} {\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://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki     : http://contextgarden.net
>>
>> ___________________________________________________________________________________
>
>

[-- Attachment #1.2: Type: text/html, Size: 12633 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 8+ messages in thread

* Re: Handling Semi-Bold for Minion Pro in Context (LuaTeX)
  2016-05-04  8:31       ` Antoine Cailliau
  2016-05-04 14:00         ` Antoine Cailliau
@ 2016-05-04 14:39         ` Wolfgang Schuster
  2016-05-04 15:48           ` Antoine Cailliau
  1 sibling, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2016-05-04 14:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 647 bytes --]

> Antoine Cailliau <mailto:antoinecailliau@gmail.com>
> 4. Mai 2016 um 10:31
> Thank you very much for the example. I got it working for the 
> "regular" style-alternative.
>
> I don't know why, but the italic style-alternative do not work. In the 
> log, the font is not even loaded... Do you have an idea of what I'm 
> doing wrong?
>
> \definefontalternative[me]
> \definefontalternative[meit]
> \definefontalternative[se]
> \definefontalternative[seit]
You can also only two letter names for the alternatives because the 
\definebodyfont command interprets everything after two letter as size 
(e.g. "a" from \tfa or "c" from \bfc).

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1722 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 8+ messages in thread

* Re: Handling Semi-Bold for Minion Pro in Context (LuaTeX)
  2016-05-04 14:39         ` Wolfgang Schuster
@ 2016-05-04 15:48           ` Antoine Cailliau
  0 siblings, 0 replies; 8+ messages in thread
From: Antoine Cailliau @ 2016-05-04 15:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1371 bytes --]

Oh. Thank you so much. I'm going to try that on Monday.

Now that I understand this, I can move to supporting the different sizes.

On 4 May 2016 at 16:39, Wolfgang Schuster <schuster.wolfgang@gmail.com>
wrote:

> Antoine Cailliau <antoinecailliau@gmail.com>
> 4. Mai 2016 um 10:31
> Thank you very much for the example. I got it working for the "regular"
> style-alternative.
>
> I don't know why, but the italic style-alternative do not work. In the
> log, the font is not even loaded... Do you have an idea of what I'm doing
> wrong?
>
> \definefontalternative[me]
> \definefontalternative[meit]
> \definefontalternative[se]
> \definefontalternative[seit]
>
> You can also only two letter names for the alternatives because the
> \definebodyfont command interprets everything after two letter as size
> (e.g. "a" from \tfa or "c" from \bfc).
>
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3118 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 8+ messages in thread

end of thread, other threads:[~2016-05-04 15:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-02  9:19 Handling Semi-Bold for Minion Pro in Context (LuaTeX) Antoine Cailliau
2016-05-02 18:35 ` Wolfgang Schuster
2016-05-03  6:58   ` Antoine Cailliau
2016-05-03 20:13     ` Wolfgang Schuster
2016-05-04  8:31       ` Antoine Cailliau
2016-05-04 14:00         ` Antoine Cailliau
2016-05-04 14:39         ` Wolfgang Schuster
2016-05-04 15:48           ` Antoine Cailliau

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).