ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Re: Install fonts on MS Windows
@ 2023-09-24  5:50 Andres Conrado Montoya
  2023-09-24  8:04 ` Jean-Pierre Delange
  0 siblings, 1 reply; 10+ messages in thread
From: Andres Conrado Montoya @ 2023-09-24  5:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

I did a test with Windows 10.

Installed a fresh copy from the garden, Got the GFS Didot font from Google
Fonts, and installed it system-wide (C:\Windows\fonts). After that, I ran

mtxrun --script fonts --reload

Then tried the pattern suggested but did not work. However, then I tried a
pattern without asterisks:

mtxrun --script fonts --list --pattern=didot --all

This returned the font:

C:\griego>mtxrun --script fonts --list --pattern=didot --all
identifier           familyname    fontname             filename
                        subfont   instances

gfsdidot             gfsdidot      gfsdidotregular
 c:/windows/fonts/GFSDidot-Regular.ttf
gfsdidotnormal       gfsdidot      gfsdidotregular
 c:/windows/fonts/GFSDidot-Regular.ttf
gfsdidotregular      gfsdidot      gfsdidotregular
 c:/windows/fonts/GFSDidot-Regular.ttf
theanodidot          theanodidot   theanodidotregular
c:/windows/fonts/TheanoDidot-Regular.ttf
theanodidotnormal    theanodidot   theanodidotregular
c:/windows/fonts/TheanoDidot-Regular.ttf
theanodidotregular   theanodidot   theanodidotregular
c:/windows/fonts/TheanoDidot-Regular.ttf

trying to render Pablo's example didn't work at first, but after i called
the fonts with the name returned by mtxrun:

\mainlanguage[agr]
\definefontfamily[mainface][rm][gfsdidot]
\definefontfamily[mainface][ss][theanodidot]
\setupbodyfont[mainface]
\starttext
GFS Didot:

\doloopoverlist{\tf, \it, \bf, \bi}
  {\recursestring\input aristotle-grc\par}

\ss
Theano Didot:

\input aristotle-grc
\stoptext

Everything compiles correctly, and the font is used. Since it's only a
single font file with no variants, you don´t get italics, bold etc. But the
font is being used.

-- 
Andrés Conrado Montoya
Andi Kú
andresconrado@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org
----------------------------------------
Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.
----------------------------------------

“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell

[-- Attachment #1.2: Type: text/html, Size: 3451 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [NTG-context] Toggling the symbol for the zero-width joiner and related Unicode control characters
@ 2023-09-21 13:31 Hamid,Idris
  2023-09-21 14:52 ` [NTG-context] " Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Hamid,Idris @ 2023-09-21 13:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Dear gang,

Within a font, relevant Unicode control characters such as the zero-width joiner usually have symbolic representation, but in printing the symbols are usually suppressed, while the effect of each character is maintained.

In some text editors, such as Windows Notepad (Uniscribe), there is the option

"Show Unicode control characters"

which toggles the symbols and keeps the effects.

I seem to recall that ConTeXt has/had a similar mechanism for toggling the symbols for Unicode control characters but cannot find it.

Does anyone know or recall where the symbol-toggling mechanism is?
If not, what would be the simplest way to implement it?

Here is a MWE (note that the three control chars might be invisible in your email client):

==============
\startTEXpage[offset=1em]
\definedfont[almfixed at 14pt]
ZWJ: ‌

ZWNJ: ‍

NBSP:
\stopTEXpage
==============

In Notepad, all three control characters can be turned on or off at once.
In Scintilla, only the NBSP appears and there is no option to toggle.
In ConTeXt, ZWJ and ZWJ appear as symbols, but NBSP does not.

Thank you in advance for your guidance.

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


[-- Attachment #1.2: Type: text/html, Size: 2915 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
___________________________________________________________________________________

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

end of thread, other threads:[~2023-09-24 10:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-24  5:50 [NTG-context] Re: Install fonts on MS Windows Andres Conrado Montoya
2023-09-24  8:04 ` Jean-Pierre Delange
2023-09-24 10:26   ` Pablo Rodriguez
  -- strict thread matches above, loose matches on Subject: below --
2023-09-21 13:31 [NTG-context] Toggling the symbol for the zero-width joiner and related Unicode control characters Hamid,Idris
2023-09-21 14:52 ` [NTG-context] " Hans Hagen
2023-09-21 20:53   ` Hamid,Idris
2023-09-21 21:29     ` Hans Hagen
2023-09-22  4:16       ` Hamid,Idris
2023-09-22  9:53         ` Hans Hagen via ntg-context
2023-09-22 12:39           ` Hamid,Idris
2023-09-22 13:15             ` Hans Hagen
2023-09-22 13:51               ` Hamid,Idris
2023-09-22 16:44                 ` Hans Hagen via ntg-context
2023-09-23 12:40                   ` [NTG-context] Install fonts on MS Windows Jean-Pierre Delange
2023-09-23 17:15                     ` [NTG-context] " Pablo Rodriguez
2023-09-23 18:05                     ` Henning Hraban Ramm
2023-09-23 18:15                       ` Wolfgang Schuster
2023-09-23 18:37                         ` Jean-Pierre Delange
2023-09-23 18:56                           ` Wolfgang Schuster
2023-09-23 18:30                       ` Jean-Pierre Delange
2023-09-23 18:42                         ` Henning Hraban Ramm

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