Dear list, I have the following sample: \definefontfamily[mainface][rm][Latin Modern Roman] \definefontfamily[mainface][ss][GaraMath][file={newg8-regular.otf}] \setupbodyfont[mainface] \starttext a{\ss a}b{\ss b}c{\ss c}g{\ss g} \stoptext I don’t get a sans typeface different from Latin Modern Roman. If the font is on the same directory as the ConTeXt source file, what is wrong in my code? Many thanks for your help, Pablo -- http://www.ousia.tk
On 3/2/2016 12:11 PM, Pablo Rodriguez wrote:
Dear list,
I have the following sample:
\definefontfamily[mainface][rm][Latin Modern Roman] \definefontfamily[mainface][ss][GaraMath][file={newg8-regular.otf}]
\setupbodyfont[mainface]
\starttext a{\ss a}b{\ss b}c{\ss c}g{\ss g} \stoptext
I don’t get a sans typeface different from Latin Modern Roman.
If the font is on the same directory as the ConTeXt source file, what is wrong in my code?
doesn't the log tell you something Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 03/02/2016 12:28 PM, Hans Hagen wrote:
On 3/2/2016 12:11 PM, Pablo Rodriguez wrote:
[...] I don’t get a sans typeface different from Latin Modern Roman.
If the font is on the same directory as the ConTeXt source file, what is wrong in my code?
doesn't the log tell you something
Many thanks for your reply, Hans. searching for font in the log file, this is what I get: fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > 2 > 3 > /home/ousia/a.tex fonts > preloading modern-designsize (math) fonts > typescripts > unknown library 'modern-designsize' fonts > 'fallback modern-designsize mm 12pt' is loaded fonts > preloading modern-designsize (mono) fonts > 'fallback modern-designsize tt 12pt' is loaded used file > 6: filename=lmroman10-regular.otf filetype=otf format=otf foundname=/home/ousia/ctxbeta/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otf usedmethod=database mkiv lua stats > loaded fonts: 1 files: lmroman10-regular.otf mkiv lua stats > font engine: otf 3.013, afm 1.500, tfm 1.000, 4 instances, 3 shared in backend, 1 common vectors, 2 common hashes, load time 0.060 seconds Same results (no font embedding) with latest stable version from the ConTeXt Suite. If you want me to, I can attach the font itself in a private message (it is URW Garamond [no copyright infringement, unless you plan to sell it ;-)]). Many thanks for your help, Pablo -- http://www.ousia.tk
On 3/2/2016 1:07 PM, Pablo Rodriguez wrote:
On 03/02/2016 12:28 PM, Hans Hagen wrote:
On 3/2/2016 12:11 PM, Pablo Rodriguez wrote:
[...] I don’t get a sans typeface different from Latin Modern Roman.
If the font is on the same directory as the ConTeXt source file, what is wrong in my code?
doesn't the log tell you something
Many thanks for your reply, Hans.
searching for font in the log file, this is what I get:
fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > 2 > 3 > /home/ousia/a.tex fonts > preloading modern-designsize (math) fonts > typescripts > unknown library 'modern-designsize' fonts > 'fallback modern-designsize mm 12pt' is loaded fonts > preloading modern-designsize (mono) fonts > 'fallback modern-designsize tt 12pt' is loaded
used file > 6: filename=lmroman10-regular.otf filetype=otf format=otf foundname=/home/ousia/ctxbeta/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otf usedmethod=database
mkiv lua stats > loaded fonts: 1 files: lmroman10-regular.otf mkiv lua stats > font engine: otf 3.013, afm 1.500, tfm 1.000, 4 instances, 3 shared in backend, 1 common vectors, 2 common hashes, load time 0.060 seconds
Same results (no font embedding) with latest stable version from the ConTeXt Suite.
If you want me to, I can attach the font itself in a private message (it is URW Garamond [no copyright infringement, unless you plan to sell it ;-)]).
i think Wolfgang has to answer it .. he knows that define*family mechanism better Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Pablo Rodriguez mailto:oinos@gmx.es 2. März 2016 um 12:11 Dear list,
I have the following sample:
\definefontfamily[mainface][rm][Latin Modern Roman] \definefontfamily[mainface][ss][GaraMath][file={newg8-regular.otf}] Does this work?
\definefontfamily[mainface][ss][GaraMath][tf=file:newg8-regular] Wolfgang
On 03/02/2016 02:54 PM, Wolfgang Schuster wrote:
Pablo Rodriguez 2. März 2016 um 12:11 [...] \definefontfamily[mainface][rm][Latin Modern Roman] \definefontfamily[mainface][ss][GaraMath][file={newg8-regular.otf}]
Does this work?
\definefontfamily[mainface][ss][GaraMath][tf=file:newg8-regular]
Wolfgang, I’m afraid it doesn’t work. Just in case it helps, directly generated from http://github.com/rbrito/urw-garamond/, you have the font itsef at http://ousia.tk/newg8-regular.otf. Many thanks for your help, Pablo -- http://www.ousia.tk
Pablo Rodriguez mailto:oinos@gmx.es 2. März 2016 um 15:43
Wolfgang,
I’m afraid it doesn’t work.
Just in case it helps, directly generated from http://github.com/rbrito/urw-garamond/, you have the font itsef at http://ousia.tk/newg8-regular.otf.
Many thanks for your help,
Pablo Wolfgang Schuster mailto:schuster.wolfgang@gmail.com 2. März 2016 um 14:54 Does this work?
\definefontfamily[mainface][ss][GaraMath][tf=file:newg8-regular]
Wolfgang Pablo Rodriguez mailto:oinos@gmx.es 2. März 2016 um 12:11 Dear list,
I have the following sample:
\definefontfamily[mainface][rm][Latin Modern Roman] \definefontfamily[mainface][ss][GaraMath][file={newg8-regular.otf}]
\setupbodyfont[mainface]
\starttext a{\ss a}b{\ss b}c{\ss c}g{\ss g} \stoptext
I don’t get a sans typeface different from Latin Modern Roman.
If the font is on the same directory as the ConTeXt source file, what is wrong in my code? The \definefontfamily can only use font which are indexed by context (mtxrun --script font --reload) which doesn’t seem to be the case here.
Wolfgang
On 03/02/2016 03:59 PM, Wolfgang Schuster wrote:
The \definefontfamily can only use font which are indexed by context (mtxrun --script font --reload) which doesn’t seem to be the case here.
Even if the font is on the same directory as the ConTeXt source file? I invoke it by its file name. Sorry, this was outside the ConTeXt tree. And I didn’t know that it has to be indexed by ConTeXt. Many thanks for your help, Pablo -- http://www.ousia.tk
On 03/02/2016 04:56 PM, Pablo Rodriguez wrote:
On 03/02/2016 03:59 PM, Wolfgang Schuster wrote:
The \definefontfamily can only use font which are indexed by context (mtxrun --script font --reload) which doesn’t seem to be the case here.
Wolfgang, I’m afraid that even with that, I’m afraid it doesn’t work well: \definefallbackfamily[mainface][rm][Latin Modern Math] [tf=file:newg8-regular, scale=0.88, range=0x22C0] \definefallbackfamily[mainface][rm][Latin Greek Math] [tf=file:newg8-regular, range=preset:greek] \definefontfamily[mainface][rm][Latin Modern Roman] \definefontfamily[mainface][tt][GreekTT][tf=file:newg8-regular] \definefontfamily[mainface][ss][GaraMath][tf=file:newg8-regular] \setupbodyfont[mainface] \starttext α ⋀ {\tt α} a{\ss a}b{\ss b}c{\ss c}g{\ss g} \stoptext If another "key=value" pair is specified, "tf=file:newg8-regular" doesn’t seem to work. What am I doing wrong? Many thanks for your help, Pablo -- http://www.ousia.tk
Pablo Rodriguez mailto:oinos@gmx.es 2. März 2016 um 17:17
Wolfgang,
I’m afraid that even with that, I’m afraid it doesn’t work well:
\definefallbackfamily[mainface][rm][Latin Modern Math] [tf=file:newg8-regular, scale=0.88, range=0x22C0] \definefallbackfamily[mainface][rm][Latin Greek Math] [tf=file:newg8-regular, range=preset:greek] \definefontfamily[mainface][rm][Latin Modern Roman] \definefontfamily[mainface][tt][GreekTT][tf=file:newg8-regular] \definefontfamily[mainface][ss][GaraMath][tf=file:newg8-regular]
\setupbodyfont[mainface]
\starttext α ⋀ {\tt α} a{\ss a}b{\ss b}c{\ss c}g{\ss g} \stoptext
If another "key=value" pair is specified, "tf=file:newg8-regular" doesn’t seem to work.
What am I doing wrong? Don’t write just some garbage as third argument for the \definefontfamily or \definefallbackfamily commands.
In the attached picture you can see the fonforge information for the font names, needed for the \definefontfamily command is the "family name" value. \definefallbackfamily[mainface][rm][GaramondNo8][scale=0.88,range=0x22C0] Wolfgang
On 03/02/2016 07:12 PM, Wolfgang Schuster wrote:
Don’t write just some garbage as third argument for the \definefontfamily or \definefallbackfamily commands.
In the attached picture you can see the fonforge information for the font names, needed for the \definefontfamily command is the "family name" value.
\definefallbackfamily[mainface][rm][GaramondNo8][scale=0.88,range=0x22C0]
Wolfgang
Or, if you happen to have texlive installed: otfinfo -a <fontfile>
On 3/2/2016 7:25 PM, Thomas A. Schmitz wrote:
On 03/02/2016 07:12 PM, Wolfgang Schuster wrote:
Don’t write just some garbage as third argument for the \definefontfamily or \definefallbackfamily commands.
In the attached picture you can see the fonforge information for the font names, needed for the \definefontfamily command is the "family name" value.
\definefallbackfamily[mainface][rm][GaramondNo8][scale=0.88,range=0x22C0]
Wolfgang
Or, if you happen to have texlive installed:
otfinfo -a <fontfile>
or if you want to know how context sees fonts: mtxrun --script font --list --pattern=* --all --info or more detailed: mtxrun --script font --list --pattern=* --all Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 03/02/2016 07:12 PM, Wolfgang Schuster wrote:
Pablo Rodriguez 2. März 2016 um 17:17 [...] If another "key=value" pair is specified, "tf=file:newg8-regular" doesn’t seem to work.
What am I doing wrong?
Don’t write just some garbage as third argument for the \definefontfamily or \definefallbackfamily commands.
In the attached picture you can see the fonforge information for the font names, needed for the \definefontfamily command is the "family name" value.
\definefallbackfamily[mainface][rm][GaramondNo8][scale=0.88,range=0x22C0]
Many thanks for your reply, Wolfgang. I wanted to avoid the installation of the font, because I had another version of GaramondNo8 already installed. So, I renamed the font and installed it. Everything works fine now. Many thanks for your help, Pablo -- http://www.ousia.tk
Pablo Rodriguez mailto:oinos@gmx.es 2. März 2016 um 23:18
Many thanks for your reply, Wolfgang.
I wanted to avoid the installation of the font, because I had another version of GaramondNo8 already installed.
So, I renamed the font and installed it. Everything works fine now. This is recommended when you change a font to avoid such problems but you can also put the fonts in your local tex directory which has a higher priority than system fonts.
Wolfgang
Pablo Rodriguez mailto:oinos@gmx.es 2. März 2016 um 16:56
Even if the font is on the same directory as the ConTeXt source file? I invoke it by its file name.
Sorry, this was outside the ConTeXt tree. And I didn’t know that it has to be indexed by ConTeXt. Loading font by filename whoch are in the same directory as your document works only with typescripts but \definefontfamily has to look in the index even when you the file-method to ensure the requested font is available.
Wolfgang
participants (4)
-
Hans Hagen
-
Pablo Rodriguez
-
Thomas A. Schmitz
-
Wolfgang Schuster