ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Hamid,Idris" <Idris.Hamid@ColoState.EDU>
To: "ntg-context@ntg.nl" <ntg-context@ntg.nl>,
	Hans Hagen <j.hagen@xs4all.nl>
Subject: [NTG-context] Re: Optical scaling in Latin Modern
Date: Tue, 15 Aug 2023 15:33:33 +0000	[thread overview]
Message-ID: <f0af3f8c-9dd6-48dd-8b63-640cee2b2912@Spark> (raw)
In-Reply-To: <acc7df62-a2c2-26f8-567b-2971b7ef2ccc@xs4all.nl>


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

On Aug 15, 2023, 8:56 AM -0600, Hans Hagen <j.hagen@xs4all.nl>, wrote:

> afaik mkiv always had modern as default an dnot the designsize
> typescript (after all, we only have math 10pt)

From font-pre.mkiv:

%D By default we load the Computer Modern Roman fonts (but
%D not yet at this moment) and activate the 12pt roman
%D bodyfont.

-)

> well, in type-imp-latinmodern.mkiv i can find 'designsize' ... you're
> not relying on some gpt driven search machine are you?

No just the search files feature in Notepad++ -)

Ok, looking at type-imp-latinmodern.mkiv, under latin-modern-designsize, I see references to design weights and styles but not to optical sizes. So no lmroman5-regular, lmroman6-regular... lmroman17-regular. There is only reference to lmroman10, which is why my initial search came up with no results.

Ah, the abstraction happens here I think:

\definetypeface [\typescriptone] [\s!rm] [\s!serif] [latin-modern-designsize] [\s!default] [\s!designsize=\s!auto]

so [\s!designsize=\s!auto] means there is no explicit call to lmroman8-regular etc.? Interesting..

Ok, let's try it:

=======
\setupbodyfont[modern-designsize]

\startTEXpage[offset=1em]
Test {\tfa Test} {\tfb Test} {\tfc Test} {\tfd Test} {\tfx Test} {\tfxx Test}
\stopTEXpage
=======

Now we get

=======
mkiv lua stats  > loaded fonts: 4 files: latinmodern-math.otf, lmroman10-regular.otf, lmroman12-regular.otf, lmroman8-regular.otf
=======

So three optical sizes are implemented. But there should be more, e.g., \tfd should use lmroman17-regular etc.

>>> (likely we will go for \enableexperiments[fonts.compact] anyway which is
>>> also more efficient)

>>Ok, that would be very helpful; many thanks.

> it might process your arabic a bit faster

Ah, great. Am looking forward to learning how to \enableexperiments[fonts.compact] etc. once it's implemented.

Best wishes
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

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

[-- Attachment #2: Type: text/plain, Size: 495 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2023-08-15 15:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-15 13:56 [NTG-context] " Hamid,Idris
2023-08-15 14:06 ` [NTG-context] " Hans Hagen
2023-08-15 14:35   ` Hamid,Idris
2023-08-15 14:56     ` Hans Hagen
2023-08-15 15:33       ` Hamid,Idris [this message]
2023-08-15 16:22         ` Hans Hagen
2023-08-16  0:48           ` Hamid,Idris
2023-08-17 10:02           ` Vincent Hennebert

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=f0af3f8c-9dd6-48dd-8b63-640cee2b2912@Spark \
    --to=idris.hamid@colostate.edu \
    --cc=j.hagen@xs4all.nl \
    --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).