ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem using a TTF font
@ 2020-11-06 14:54 ntg
  2020-11-07 14:48 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: ntg @ 2020-11-06 14:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

This, I'm certain, used to work with an LMTX from the beginning of the year but I've upgraded to "ConTeXt  ver: 2020.11.05 23:01 LMTX  fmt: 2020.11.6  int: english/english" and now it doesn't. 

I have a single .tex file in a directory, containing:

---begin---
\definefont [TwelveC] [file:Bondi12CPlus.TTF at 14pt]
\starttext
Keycaps: \TwelveC 123.45 \tf and back again
\stoptext
---end---

In the same directory I have the TTF font file which can be obtained from <https://www.educalc.net/2336507.page>. It is calculator keycap images for use in documentation.

In the PDF I get just blank space where the keycaps should be and Adobe Reader's document info seems to think there is only one font in the file i.e. the keycap font didn't get embedded. However, the console output includes the lines:

mkiv lua stats  > result saved in file: 12C_test.pdf, compresslevel 3, objectcompresslevel 1
mkiv lua stats  > loaded patterns: en::1, load time: 0.000
mkiv lua stats  > loaded fonts: 3 files: latinmodern-math.otf, lmroman12-regular.otf, bondi12cplus.ttf
mkiv lua stats  > font engine: otf 3.111, afm 1.513, tfm 1.000, 8 instances, 3 shared in backend, 3 common vectors, 0 common hashes, load time 0.132 seconds 
mkiv lua stats  > font embedding time: 0.006 seconds, 2 fonts

which suggests LMTX thinks it loaded the font but decided not to embed it for some reason.

I'm probably doing something silly since it's been several months since I last looked at this but I can't see what I might be doing wrong :-(  so any and all help much appreciated.

PS: The font installs and displays in MacOS fine.

I've also tried
  \definefont [TwelveC] [Bondi12CPlus at 14pt]
and that fails the same way.

--
Bruce Horrocks
Hampshire, UK

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

* Re: Problem using a TTF font
  2020-11-06 14:54 Problem using a TTF font ntg
@ 2020-11-07 14:48 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2020-11-07 14:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users, ntg

On 11/6/2020 3:54 PM, ntg@scorecrow.com wrote:
> This, I'm certain, used to work with an LMTX from the beginning of the year but I've upgraded to "ConTeXt  ver: 2020.11.05 23:01 LMTX  fmt: 2020.11.6  int: english/english" and now it doesn't.
> 
> I have a single .tex file in a directory, containing:
> 
> ---begin---
> \definefont [TwelveC] [file:Bondi12CPlus.TTF at 14pt]
> \starttext
> Keycaps: \TwelveC 123.45 \tf and back again
> \stoptext
> ---end---
> 
> In the same directory I have the TTF font file which can be obtained from <https://www.educalc.net/2336507.page>. It is calculator keycap images for use in documentation.
> 
> In the PDF I get just blank space where the keycaps should be and Adobe Reader's document info seems to think there is only one font in the file i.e. the keycap font didn't get embedded. However, the console output includes the lines:
> 
> mkiv lua stats  > result saved in file: 12C_test.pdf, compresslevel 3, objectcompresslevel 1
> mkiv lua stats  > loaded patterns: en::1, load time: 0.000
> mkiv lua stats  > loaded fonts: 3 files: latinmodern-math.otf, lmroman12-regular.otf, bondi12cplus.ttf
> mkiv lua stats  > font engine: otf 3.111, afm 1.513, tfm 1.000, 8 instances, 3 shared in backend, 3 common vectors, 0 common hashes, load time 0.132 seconds
> mkiv lua stats  > font embedding time: 0.006 seconds, 2 fonts
> 
> which suggests LMTX thinks it loaded the font but decided not to embed it for some reason.
> 
> I'm probably doing something silly since it's been several months since I last looked at this but I can't see what I might be doing wrong :-(  so any and all help much appreciated.
> 
> PS: The font installs and displays in MacOS fine.
> 
> I've also tried
>    \definefont [TwelveC] [Bondi12CPlus at 14pt]
> and that fails the same way.
for now rename the file to one with a lowercase suffix (i'll check for 
that)

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2020-11-07 14:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-06 14:54 Problem using a TTF font ntg
2020-11-07 14:48 ` Hans Hagen

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