Re: [XeTeX] Disable "mktextfm" and/or use of TFM-based fonts ?

2022-06-08 Thread Ulrike Fischer
Am Tue, 7 Jun 2022 11:44:28 +0100 schrieb Philip Taylor (Hellenic
Institute):

> As I /never/ want XeTeX to attempt to create a seemingly-missing TFM 
> file, can I configure XeTeX and/or TeXworks to inhibit this undesired 
> behaviour ? 

Perhaps by setting MKTEXTFM = 0, but I never tried if xetex honors
that. But even if that work: you would still get errors from your
code, so why bother?

> And for that matter, can I configure XeTeX and/or TeXworks 
> to inhibit any attempt to use TFM-based fonts ?

Do you really want that? Don't you use tfm based math fonts?

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



Re: [XeTeX] Disable "mktextfm" and/or use of TFM-based fonts ?

2022-06-08 Thread Philip Taylor (Hellenic Institute)

On 08/06/2022 08:51, Ulrike Fischer wrote:
Perhaps by setting MKTEXTFM = 0, but I never tried if xetex honors that. 


Yes, a great improvement thank you —


D:\ XeTeX Font-error
This is XeTeX, Version 3.141592653-2.6-0.94 (TeX Live 2022) 
(preloaded format=xetex)

 restricted \write18 enabled.
entering extended mode
(./Font-error.tex [1] [2] [3] [4] [5] [6] [7] [8] [9]
! Font \fnf= not loadable: Metric (TFM) file or installed font not found.

   \font
l.441 \font \fnf  = \font
  \fb "Gill Sans MT" scaled 455
? s
OK, entering \scrollmode...
[10] [11] [12] )
(see the transcript file for additional information)
Output written on Font-error.pdf (12 pages).
Transcript written on Font-error.log.






Re: [XeTeX] Disable "mktextfm" and/or use of TFM-based fonts ?

2022-06-08 Thread Philip Taylor (Hellenic Institute)

On 08/06/2022 08:51, Ulrike Fischer wrote:

Am Tue, 7 Jun 2022 11:44:28 +0100 schrieb Philip Taylor (Hellenic
Institute):


As I /never/ want XeTeX to attempt to create a seemingly-missing TFM
file, can I configure XeTeX and/or TeXworks to inhibit this undesired
behaviour ?

Perhaps by setting MKTEXTFM = 0, but I never tried if xetex honors
that. But even if that work: you would still get errors from your
code, so why bother?
Thank you, I will try that.  Error messages I would expeect — an attempt 
to create a font (or even a font metric file), I would not — typesetting 
should utilise existing resources, not attempt to create new ones.  Or 
to put it another way, TeX is a typesetting engine, and should not 
pretend to be a poor man's "make".



And for that matter, can I configure XeTeX and/or TeXworks
to inhibit any attempt to use TFM-based fonts ?

Do you really want that? Don't you use tfm based math fonts?


Not intentionally, since I rarely if ever typeset maths.  But if I /were 
/to need to insert a fragment of maths into a document that I would 
typesetting, I would like to be warned if XeTeX needed to fall back on 
the Computer Modern (or similar) fonts.


--
/** Phil./



Re: [XeTeX] Disable "mktextfm" and/or use of TFM-based fonts ?

2022-06-08 Thread Ulrike Fischer
Am Wed, 8 Jun 2022 09:43:19 +0100 schrieb Philip Taylor (Hellenic
Institute):

> On 08/06/2022 08:51, Ulrike Fischer wrote:
>> Am Tue, 7 Jun 2022 11:44:28 +0100 schrieb Philip Taylor (Hellenic
>> Institute):
>>
>>> As I /never/ want XeTeX to attempt to create a seemingly-missing TFM
>>> file, can I configure XeTeX and/or TeXworks to inhibit this undesired
>>> behaviour ?
>> Perhaps by setting MKTEXTFM = 0, but I never tried if xetex honors
>> that. But even if that work: you would still get errors from your
>> code, so why bother?
> Thank you, I will try that.  Error messages I would expeect — an attempt 
> to create a font (or even a font metric file), I would not — typesetting 
> should utilise existing resources, not attempt to create new ones.  Or 
> to put it another way, TeX is a typesetting engine, and should not 
> pretend to be a poor man's "make".

Sorry but I think it is one of the nice features of a modern tex
system that it creates tfm or pk fonts on the fly. And if I may say:
xetex is doing that internally too for your open type fonts: it is
still tex and needs tfm files. Do you want to miss that feature and
have to prepare the tfm files your self before using a font?


>>
>>> And for that matter, can I configure XeTeX and/or TeXworks
>>> to inhibit any attempt to use TFM-based fonts ?
>> Do you really want that? Don't you use tfm based math fonts?
> 
> Not intentionally, since I rarely if ever typeset maths.  But if I /were 
> /to need to insert a fragment of maths into a document that I would 
> typesetting, I would like to be warned if XeTeX needed to fall back on 
> the Computer Modern (or similar) fonts.

XeTeX doesn't fallback. It uses the fonts that your format and your
code tells it to use. If you prefer to use unicode math fonts, here
is a receipt what you have to change in plain for this:
https://tex.stackexchange.com/q/308749/2388



-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



Re: [XeTeX] Disable "mktextfm" and/or use of TFM-based fonts ?

2022-06-08 Thread Philip Taylor (Hellenic Institute)

On 08/06/2022 09:55, Ulrike Fischer wrote:

Sorry but I think it is one of the nice features of a modern tex
system that it creates tfm or pk fonts on the fly.

That's fine; we can agree to differ on such philosophical points.

xetex is doing that internally too for your open type fonts: it is
still tex and needs tfm files.

Does it ?  Are you absolutely certain ?

Do you want to miss that feature and
have to prepare the tfm files your self before using a font?
It it does, then no, I am happy for it to do that, but I was unaware 
that it does.

XeTeX doesn't fallback. It uses the fonts that your format and your
code tells it to use. If you prefer to use unicode math fonts, here
is a receipt what you have to change in plain for this:
https://tex.stackexchange.com/q/308749/2388


By "fall back", I meant "use Computer Modern for maths if Ihave failed 
to declate my own maths fonts".  But thank you for the recipe — much 
appreciated.


Incidentally, I now see that I can use the following successfully, which 
makes it far easier to integrate the desired functionality into TeXwords —



D:\ XeTeX -no-mktex=TFM \input Font-error
This is XeTeX, Version 3.141592653-2.6-0.94 (TeX Live 2022) 
(preloaded format=xetex)

 restricted \write18 enabled.
entering extended mode
(./Font-error.tex [1] [2] [3] [4] [5] [6] [7] [8] [9]
! Font \fnf= not loadable: Metric (TFM) file or installed font not found.

   \font
l.441 \font \fnf  = \font
  \fb "Gill Sans MT" scaled 455
? s
OK, entering \scrollmode...
[10] [11] [12] )
(see the transcript file for additional information)
Output written on Font-error.pdf (12 pages).
Transcript written on Font-error.log.

--
/** Phil./