ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Antoine Cailliau <antoinecailliau@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Handling Semi-Bold for Minion Pro in Context (LuaTeX)
Date: Wed, 4 May 2016 10:31:29 +0200	[thread overview]
Message-ID: <CAKX8Tc7sg9u5Bw85iKO6OEC6eQ1tOZTW7HK=LgMW=qnfGYKuCg@mail.gmail.com> (raw)
In-Reply-To: <57290664.5030608@gmail.com>


[-- 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
___________________________________________________________________________________

  reply	other threads:[~2016-05-04  8:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-02  9:19 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 [this message]
2016-05-04 14:00         ` Antoine Cailliau
2016-05-04 14:39         ` Wolfgang Schuster
2016-05-04 15:48           ` Antoine Cailliau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKX8Tc7sg9u5Bw85iKO6OEC6eQ1tOZTW7HK=LgMW=qnfGYKuCg@mail.gmail.com' \
    --to=antoinecailliau@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).