ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Hieroglyphic font query
@ 2017-04-02 15:23 Alan Bowen
  2017-04-02 15:32 ` kaddour kardio
  2017-04-02 16:45 ` Pablo Rodriguez
  0 siblings, 2 replies; 8+ messages in thread
From: Alan Bowen @ 2017-04-02 15:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

I have the hieroglyphic font, New Gardiner Medium, in .otf and .ttf
formats. It is installed in my OSFONTDIR and is accessible using other
applications.

But

\switchtobodyfont[newgardiner,14pt]𓇼𓋹

does not work (with either the .ttf or the .otf format).

I have checked: “NewGardiner” is the Postscript Name, the Full name, and
the Family Name.

So what have I missed?

Alan

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

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Hieroglyphic font query
  2017-04-02 15:23 Hieroglyphic font query Alan Bowen
@ 2017-04-02 15:32 ` kaddour kardio
  2017-04-02 15:39   ` Alan Bowen
  2017-04-02 16:45 ` Pablo Rodriguez
  1 sibling, 1 reply; 8+ messages in thread
From: kaddour kardio @ 2017-04-02 15:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

​Can you please copy-past de log file?​

On Sun, Apr 2, 2017 at 5:23 PM, Alan Bowen <bowenalan03@gmail.com> wrote:

> I have the hieroglyphic font, New Gardiner Medium, in .otf and .ttf
> formats. It is installed in my OSFONTDIR and is accessible using other
> applications.
>
> But
>
> \switchtobodyfont[newgardiner,14pt]𓇼𓋹
>
> does not work (with either the .ttf or the .otf format).
>
> I have checked: “NewGardiner” is the Postscript Name, the Full name, and
> the Family Name.
>
> So what have I missed?
>
> Alan
>
> ____________________________________________________________
> _______________________
> 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
> ____________________________________________________________
> _______________________
>



-- 
Dr YAHYAOUI Mohamed Kaddour, cardiologue.Clinique EL ABRAR.

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

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Hieroglyphic font query
  2017-04-02 15:32 ` kaddour kardio
@ 2017-04-02 15:39   ` Alan Bowen
  0 siblings, 0 replies; 8+ messages in thread
From: Alan Bowen @ 2017-04-02 15:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Certainly: see the attached file.
A.

On Sun, Apr 2, 2017 at 11:32 AM, kaddour kardio <kaddourkardio@gmail.com>
wrote:

> ​Can you please copy-past de log file?​
>
> On Sun, Apr 2, 2017 at 5:23 PM, Alan Bowen <bowenalan03@gmail.com> wrote:
>
>> I have the hieroglyphic font, New Gardiner Medium, in .otf and .ttf
>> formats. It is installed in my OSFONTDIR and is accessible using other
>> applications.
>>
>> But
>>
>> \switchtobodyfont[newgardiner,14pt]𓇼𓋹
>>
>> does not work (with either the .ttf or the .otf format).
>>
>> I have checked: “NewGardiner” is the Postscript Name, the Full name, and
>> the Family Name.
>>
>> So what have I missed?
>>
>> Alan
>>
>> ____________________________________________________________
>> _______________________
>> 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/list
>> info/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki     : http://contextgarden.net
>> ____________________________________________________________
>> _______________________
>>
>
>
>
> --
> Dr YAHYAOUI Mohamed Kaddour, cardiologue.Clinique EL ABRAR.
>
> ____________________________________________________________
> _______________________
> 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
> ____________________________________________________________
> _______________________
>

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

[-- Attachment #2: test.log --]
[-- Type: application/octet-stream, Size: 7003 bytes --]

system          > synctex functionality is disabled!

resolvers       > trees > analyzing 'home:texmf'

open source     > level 1, order 1, name '/Applications/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system          > 
system          > ConTeXt  ver: 2017.03.26 16:15 MKIV beta  fmt: 2017.4.2  int: english/english
system          > 
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name '/Applications/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
close source    > level 2, order 2, name '/Applications/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > files > jobname 'test', input './test', result 'test'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 2, order 3, name '/Users/bowen1/Desktop/TestTeX/test.tex'
fonts           > bodyfont '18pt' is defined (can better be done global)
fonts           > bodyfont '21.6pt' is defined (can better be done global)
fonts           > preloading modern-designsize (math)
fonts           > typescripts > unknown library 'modern-designsize'
fonts           > 'fallback modern-designsize mm 18pt' is loaded
fonts           > preloading modern-designsize (mono)
fonts           > 'fallback modern-designsize tt 18pt' is loaded
fonts           > bodyfont '14pt' is defined (can better be done global)
fonts           > bodyfont '16.8pt' is defined (can better be done global)
fonts           > bodyfont '11.2pt' is defined (can better be done global)
open source     > level 3, order 4, name '/Applications/ConTeXt/tex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv'
close source    > level 3, order 4, name '/Applications/ConTeXt/tex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv'
fonts           > bodyfont '14pt' is defined (can better be done global)
fonts           > bodyfont '16.8pt' is defined (can better be done global)
fonts           > bodyfont '11.2pt' is defined (can better be done global)
fonts           > typescripts > unknown library 'newgardiner'
backend         > xmp > using file '/Applications/ConTeXt/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
close source    > level 2, order 4, name '/Users/bowen1/Desktop/TestTeX/test.tex'
close source    > level 1, order 4, name '/Applications/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'

system          > structure > start used structure

used structure  > text: test

system          > structure > stop used structure


system          > files > start used files

used file       >    1: filename=cont-yes.mkiv filetype=tex foundname=/Applications/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv usedmethod=database
used file       >    2: filename=publ-imp-default.lua filetype=scripts foundname=/Applications/ConTeXt/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua usedmethod=database
used file       >    3: filename=cont-new.mkiv filetype=tex foundname=/Applications/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv usedmethod=database
used file       >    4: filename=lang-us.lua filetype=scripts foundname=/Applications/ConTeXt/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua usedmethod=database
used file       >    5: filename=/Users/bowen1/Desktop/TestTeX/test.tex foundname=/Users/bowen1/Desktop/TestTeX/test.tex usedmethod=direct
used file       >    6: filename=Brill Roman 2.06 051.otf filetype=otf format=otf foundname=/Users/bowen1/Library/Fonts/Brill Roman 2.06 051.otf usedmethod=filesystem
used file       >    7: filename=type-imp-dejavu.mkiv filetype=tex foundname=/Applications/ConTeXt/tex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv usedmethod=database
used file       >    8: filename=dejavu-math.lfg filetype=tex foundname=/Applications/ConTeXt/tex/texmf-context/tex/context/fonts/mkiv/dejavu-math.lfg usedmethod=database
used file       >    9: filename=texgyredejavu-math filetype=otf format=otf foundname=/Applications/ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre-math/texgyredejavu-math.otf usedmethod=database
used file       >   10: filename=lpdf-pdx.xml filetype=tex foundname=/Applications/ConTeXt/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml usedmethod=database

system          > files > stop used files


system          > options > start commandline options

used option     > autogenerate="true"
used option     > currentrun="1"
used option     > directives="system.synctex=0"
used option     > fulljobname="./test.tex"
used option     > input="./test.tex"
used option     > kindofrun="1"
used option     > maxnofruns="9"
used option     > no-parse-first-line="true"
used option     > synctex="0"

system          > options > stop commandline options

system          > options > start commandline files

used file       >    1: ./test.tex

system          > options > stop commandline files


mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: /Applications/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.009 seconds, 1 scans with scantime 0.001 seconds, 0 shared scans, 10 found files, scanned paths: /Users/bowen1/texmf
mkiv lua stats  > stored bytecode data: 402 modules (0.274 sec), 91 tables (0.015 sec), 493 chunks (0.290 sec)
mkiv lua stats  > traced context: maxstack: 1227, freed: 0, unreachable: 1227
mkiv lua stats  > cleaned up reserved nodes: 49 nodes, 9 lists of 447
mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 9 attribute, 49 glue_spec, 3 attribute_list, 2 temp, 2 user_defined
mkiv lua stats  > node list callback tasks: 7 unique task lists, 6 instances (re)created, 42 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: 159 direct, 369 indirect, 528 total
mkiv lua stats  > randomizer: resumed with value 0.62894797214724
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > result saved in file: test.pdf, compresslevel 3, objectcompresslevel 3
mkiv lua stats  > loaded fonts: 2 files: texgyredejavu-math.otf, brill roman 2.06 051.otf
mkiv lua stats  > font engine: otf 3.028, afm 1.512, tfm 1.000, 11 instances, 7 shared in backend, 1 common vectors, 6 common hashes, load time 0.274 seconds 
mkiv lua stats  > used platform: osx-ppc, type: unix, binary subtree: texmf-osx-64
mkiv lua stats  > luatex banner: this is luatex, version 1.0.3 (tex live 2017/dev)
mkiv lua stats  > control sequences: 46968 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua, used memory: 91 MB (ctx: 91 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.67 seconds, 1 processed pages, 1 shipped pages, 1.493 pages/second


[-- Attachment #3: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Hieroglyphic font query
  2017-04-02 15:23 Hieroglyphic font query Alan Bowen
  2017-04-02 15:32 ` kaddour kardio
@ 2017-04-02 16:45 ` Pablo Rodriguez
  2017-04-02 18:19   ` Alan Bowen
  1 sibling, 1 reply; 8+ messages in thread
From: Pablo Rodriguez @ 2017-04-02 16:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 04/02/2017 05:23 PM, Alan Bowen wrote:
> I have the hieroglyphic font, New Gardiner Medium, in .otf and .ttf
> formats. It is installed in my OSFONTDIR and is accessible using other
> applications.
> 
> But
> 
> \switchtobodyfont[newgardiner,14pt]𓇼𓋹
> 
> does not work (with either the .ttf or the .otf format).
> 
> I have checked: “NewGardiner” is the Postscript Name, the Full name, and
> the Family Name.
> 
> So what have I missed?

Well, I suppose you included before:

\definefontfamily[newgardiner][rm][NewGardiner]

If it doesn’t work, replace [NewGardiner] with [NewGardiner-Medium].

If it doesn’t, could you use \setupbodyfont[newgardiner, 14pt]?

Just in case it helps,

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Hieroglyphic font query
  2017-04-02 16:45 ` Pablo Rodriguez
@ 2017-04-02 18:19   ` Alan Bowen
  2017-04-02 18:35     ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Alan Bowen @ 2017-04-02 18:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi, Pablo—thanks for the suggestions. I was not able to get them to work.
Here is my test file.

\definefallbackfamily[mainface][sans][NewGardiner][range=131FC,132F9]
%\definefallbackfamily[mainface][sans][NewGardiner-Medium][range=131FC,132F9]

\definefontfamily[mainface][serif][Brill]

\setupbodyfont[mainface,18pt]


\starttext

Hello world! 1234

αβγ

{
𓇼𓋹
}

and that is all.

\stoptext


On Sun, Apr 2, 2017 at 12:45 PM, Pablo Rodriguez <oinos@gmx.es> wrote:

> On 04/02/2017 05:23 PM, Alan Bowen wrote:
> > I have the hieroglyphic font, New Gardiner Medium, in .otf and .ttf
> > formats. It is installed in my OSFONTDIR and is accessible using other
> > applications.
> >
> > But
> >
> > \switchtobodyfont[newgardiner,14pt]𓇼𓋹
> >
> > does not work (with either the .ttf or the .otf format).
> >
> > I have checked: “NewGardiner” is the Postscript Name, the Full name, and
> > the Family Name.
> >
> > So what have I missed?
>
> Well, I suppose you included before:
>
> \definefontfamily[newgardiner][rm][NewGardiner]
>
> If it doesn’t work, replace [NewGardiner] with [NewGardiner-Medium].
>
> If it doesn’t, could you use \setupbodyfont[newgardiner, 14pt]?
>
> Just in case it helps,
>
> 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
> ____________________________________________________________
> _______________________
>

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

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Hieroglyphic font query
  2017-04-02 18:19   ` Alan Bowen
@ 2017-04-02 18:35     ` Wolfgang Schuster
  2017-04-02 19:51       ` Alan Bowen
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2017-04-02 18:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


> Alan Bowen <mailto:bowenalan03@gmail.com>
> 2. April 2017 um 20:19via Postbox 
> <https://www.postbox-inc.com/?utm_source=email&utm_medium=sumlink&utm_campaign=reach>
> Hi, Pablo—thanks for the suggestions. I was not able to get them to work.
> Here is my test file.
>
> \definefallbackfamily[mainface][sans][NewGardiner][range=131FC,132F9]
> %\definefallbackfamily[mainface][sans][NewGardiner-Medium][range=131FC,132F9]
>
> \definefontfamily[mainface][serif][Brill]
>
> \setupbodyfont[mainface,18pt]
>
>
> \starttext
>
> Hello world! 1234
>
> αβγ
>
> {
> 𓇼𓋹
> }
>
> and that is all.
>
> \stoptext
There is a problem when you change the font size to a value which isn’t 
pre defined
(e.g. 14pt causes problems while 14.4pt works) and you have to add 
\definebodyfont[...]
(e.g. \definebodyfont[14pt]) to your document.

%\starttypescript[sans][newgardiner]
%    \setups[font:fallback:sans]
%    \definefontsynonym[Sans][file:newgardinersmp]
%\stoptypescript
%
%\definetypeface[newgardiner][ss][sans][newgardiner][default][features=default]

\definefontfamily[newgardiner][rm][NewGardiner]

\starttext

{\definedfont[file:newgardinersmp at 14.4pt]𓇼𓋹}

\switchtobodyfont[newgardiner,14.4pt]𓇼𓋹

\stoptext

Wolfgang

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

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Hieroglyphic font query
  2017-04-02 18:35     ` Wolfgang Schuster
@ 2017-04-02 19:51       ` Alan Bowen
  2017-04-03 13:04         ` Font Fallbacks Mathias Schickel
  0 siblings, 1 reply; 8+ messages in thread
From: Alan Bowen @ 2017-04-02 19:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Thanks, Wolfgang. That works very nicely!

I ended up setting the glyphs at 8pt (to fit the text) and adjusted my list
of bodyfont sizes accordingly. A great tip/reminder!

Alan

On Sun, Apr 2, 2017 at 2:35 PM, Wolfgang Schuster <
schuster.wolfgang@gmail.com> wrote:

>
> Alan Bowen <bowenalan03@gmail.com>
> 2. April 2017 um 20:19 via Postbox
> <https://www.postbox-inc.com/?utm_source=email&utm_medium=sumlink&utm_campaign=reach>
> Hi, Pablo—thanks for the suggestions. I was not able to get them to work.
> Here is my test file.
>
> \definefallbackfamily[mainface][sans][NewGardiner][range=131FC,132F9]
> %\definefallbackfamily[mainface][sans][NewGardiner-
> Medium][range=131FC,132F9]
>
> \definefontfamily[mainface][serif][Brill]
>
> \setupbodyfont[mainface,18pt]
>
>
> \starttext
>
> Hello world! 1234
>
> αβγ
>
> {
> 𓇼𓋹
> }
>
> and that is all.
>
> \stoptext
>
> There is a problem when you change the font size to a value which isn’t
> pre defined
> (e.g. 14pt causes problems while 14.4pt works) and you have to add
> \definebodyfont[...]
> (e.g. \definebodyfont[14pt]) to your document.
>
> %\starttypescript[sans][newgardiner]
> %    \setups[font:fallback:sans]
> %    \definefontsynonym[Sans][file:newgardinersmp]
> %\stoptypescript
> %
> %\definetypeface[newgardiner][ss][sans][newgardiner][
> default][features=default]
>
> \definefontfamily[newgardiner][rm][NewGardiner]
>
> \starttext
>
> {\definedfont[file:newgardinersmp at 14.4pt]𓇼𓋹}
>
> \switchtobodyfont[newgardiner,14.4pt]𓇼𓋹
>
> \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
> ____________________________________________________________
> _______________________
>

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

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Font Fallbacks
  2017-04-02 19:51       ` Alan Bowen
@ 2017-04-03 13:04         ` Mathias Schickel
  0 siblings, 0 replies; 8+ messages in thread
From: Mathias Schickel @ 2017-04-03 13:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Dear ConTeXt users,

I have a question concerning font fallbacks in math fonts. I have not been able to find an option to specify optical sizes in fallbacks. I want to use Minion Math for the alphabetical symbols, and this font ships with single font files for each optical size. So I am searching for the right command to get for example the following behaviour:

Use the CambriaMath fonts for mathematical symbols and use Minion Math (Minion-Math-Regular.otf for standard size, Minion-Math-Caption.otf for indices and Minion-Math-Tiny for sub-indices) for alphabetical symbols.

Can anyone tell me which commands I have to use to achieve this?

So the general question is paraphrased as follows: Use some font as a general math font (here CambriaMath) and replace some symbols out of another fonts that ships with single files for each optical size.

One remark about that: Minion Math has supporting mkiv-files. So you can use this font (specifying all optical sizes) by writing \setupbodyfont[minion]. One could make use of that and maybe use a command like

\definefamilyfallback[MathFallback][family:minion][<range of symbols to be replaced>][force=yes].

As far as I know a command like that does not exist at present. Maybe it could be designed to take use of existing font definition files.

And I have some similar problem: I do not like the mathematical symbols of the STIX2 fonts that much (since they are mainly taken from STIX1) and let us suppose now that I want to use again CambriaMath instead for mathematical symbols. I was able to figure out the following commands that nearly achieve what I want to get:

\definefontfallback[MathFallback][file:STIX2Math.otf][lowercasescript,uppercasescript,lowercasefraktur,uppercasefraktur][force=yes]
%
\starttypescriptcollection[stix2own]
	%
	\starttypescript [\s!math][stix2own][\s!all]
        \loadfontgoodies[cambria-math]
        \definefontsynonym[\s!MathRoman] [Cambria-Math]	[\s!features={\s!math\mathsizesuffix},\s!designsize=\s!auto,\s!fallbacks={MathFallback},\s!goodies=cambria-math]
   	 \stoptypescript
	%
	\starttypescript [stix2own]
        	\definetypeface [\typescriptone] [\s!mm] [\s!math]  [stix2own] [\s!default]
	\stoptypescript
	%
\stoptypescriptcollection

This font can be used by the command \setupbodyfont[stix2own].

The only problem is that STIX2 has design sizes embedded in the file STIX2Math.otf that are used if I am using this file as whole for math, but that are not used any longer using the mechanism defined above. That means: If I use Cambria as Math font and replace the alphabetical symbols out of STIX2Math.otf the optical sizes for indices are not used any longer.

What can be done to solve this second problem?

One last question remains: I dislike the summation symbol of CambriaMath (because it is too large in my eyes) and this is why I want to replace it by the version of STIX2Math again (this symbols is indeed redesigned in STIX2Math and looks very nice in my eyes). So I could add a second font fallback that should be applied besides the one above. The unicode slot of the summation symbol is 0x2211in STIX2Math. So I could define

\definefontfallback[SummationFallback][file:STIX2Math.otf][0x2211][force=yes]

and pass it as a second fallback as follows (changing the following line in the example above):

\definefontsynonym[\s!MathRoman] [Cambria-Math]	[\s!features={\s!math\mathsizesuffix},\s!designsize=\s!auto,\s!fallbacks={MathFallback,SummationFallback},\s!goodies=cambria-math]

The problem is that only one of those fallbacks is used if I pass two arguments for fallbacks. Of course this problem can be solved easily if I add the summation symbol to the list of replaced symbols in the first fallback definition. But if I want to use a summation symbol out of another font this trick does not work any longer.

Besides there is a second problem in replacing the summation symbol in the way described: Every time I am using $\sum$, ConTeXt uses the bigger symbol designed for displayed formulas and not the one designed for inline formulas. How can I solve this problem?

Thank you very much for your assistance! If running minimal examples are required I can of course provide them. But I hope someone understands the fallback mechanism better than I do and then the minimal examples written by me would be obsolete (besides the require some font definition files which makes them more of less a little complex). Besides because of Minion Math is commercial not everyone owns this font an thus is unable to run the minimal example.

Kind regards
Mathias


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

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-04-03 13:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-02 15:23 Hieroglyphic font query Alan Bowen
2017-04-02 15:32 ` kaddour kardio
2017-04-02 15:39   ` Alan Bowen
2017-04-02 16:45 ` Pablo Rodriguez
2017-04-02 18:19   ` Alan Bowen
2017-04-02 18:35     ` Wolfgang Schuster
2017-04-02 19:51       ` Alan Bowen
2017-04-03 13:04         ` Font Fallbacks Mathias Schickel

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