Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

There's coffee in that nebula! -- Capt. Kathryn Janeway, Star Trek: Voyager, "The Cloud"


computers / comp.text.tex / Re: Accessing alternate characters in OpenType font

SubjectAuthor
* Accessing alternate characters in OpenType fontPeter Flynn
`* Re: Accessing alternate characters in OpenType fontUlrike Fischer
 `- Re: Accessing alternate characters in OpenType fontPeter Flynn

1
Accessing alternate characters in OpenType font

<jgclriFb4i9U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4894&group=comp.text.tex#4894

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: peter@silmaril.ie (Peter Flynn)
Newsgroups: comp.text.tex
Subject: Accessing alternate characters in OpenType font
Date: Wed, 8 Jun 2022 23:23:46 +0100
Lines: 60
Message-ID: <jgclriFb4i9U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net qzV1f7lxmAYHV4sKfmkvfge8z4RTUdPhyJnFJpUF2P4oO0eXfr
Cancel-Lock: sha1:pEdxbQJwTWPy6CuhKvUp3qGU4sM=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.8.1
Content-Language: en-US
 by: Peter Flynn - Wed, 8 Jun 2022 22:23 UTC

I have just acquired an OpenType font with a block of swash and other
alternate characters in locations 65536 (0x10000) upwards. I haven't
used these before, so I need to learn how to access them using XeLaTeX
and the fontspec package.

For example, opening the font in FontForge lets me see a swash "A" with
this location and name:

65537 (0x10001) U+0041 "A.ss01" LATIN CAPITAL LETTER A

I have loaded the font ST.otf with

\newfontface{\st}{ST}[StylisticSet=1]

and I have written (within \makeatletter)

\DeclareTextSymbol{\ST@Aswash}{TU}{"10001}
\newcommand{\Aswash}{{\st\ST@Aswash}}

and then in the document body:

This is an \Aswash

XeLaTeX processes this without console errors, but the PDF shows an
error glyph at that point, a little black block with the words NO GLYPH
written vertically. This glyph is actually in the font, at the start
location of the block: 65536 (0x10000) U+???? ".notdef" so I assume it
is designed to display under conditions where the requested character
cannot be accessed.

But the log file shows (correctly, I assume)

(fontspec) - 'normal' (m/n) with NFSS spec.:
<->"ST/OT:script=latn;language=dflt;+ss01;"

during loading, but the log file also says (at the end):

Missing character:
There is no 𐀁 in font ST Regular/OT:script=latn;language=dflt;+ss01;!

(The character shown here may not make it through Usenet, but it is
a Linear B Syllable B038 E which Unicode defines as occupying this
codepoint; which the font designer has borrowed for the character.)

The fontspec documentation recommends running the font through the
supplied opentype-info.tex, and that does indeed also show (among lots more)

script = ’latn’
[...]
language = ⟨default⟩ features = ’aalt’ ’case’ ’ccmp’ ’dlig’
’liga’ ’ordn’ ’ss01’ ’ss02’ ’ss03’ ’ss04’ ’ss05’ ’ss06’ ’ss07’
’ss08’ ’ss09’ ’ss10’ ’ss11’ ’kern’ ’mark’ ’mkmk’

which includes the ss01 StylisticSet feature.

I have read the fontspec.pdf documentation, but I have not been able to
identify what more I would need to do to enable access to characters in
these locations.

Peter

Re: Accessing alternate characters in OpenType font

<1bw1032fc6rpj$.dlg@nililand.de>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4898&group=comp.text.tex#4898

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: news3@nililand.de (Ulrike Fischer)
Newsgroups: comp.text.tex
Subject: Re: Accessing alternate characters in OpenType font
Date: Thu, 9 Jun 2022 09:41:31 +0200
Lines: 21
Message-ID: <1bw1032fc6rpj$.dlg@nililand.de>
References: <jgclriFb4i9U1@mid.individual.net>
Reply-To: news3@nililand.de
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net DySrazMhJgRr0qgtNVXq1wEeIpguRfzMHCzYG4fULydvwKrfiG
Cancel-Lock: sha1:zA0AZmw2CLVM/rQaTqKVu4SbM8g=
User-Agent: 40tude_Dialog/2.0.15.41de
 by: Ulrike Fischer - Thu, 9 Jun 2022 07:41 UTC

Am Wed, 8 Jun 2022 23:23:46 +0100 schrieb Peter Flynn:

> I have loaded the font ST.otf with
>
> \newfontface{\st}{ST}[StylisticSet=1]
>
> and I have written (within \makeatletter)
>
> \DeclareTextSymbol{\ST@Aswash}{TU}{"10001}
> \newcommand{\Aswash}{{\st\ST@Aswash}}
>
> and then in the document body:

Try

\st A

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

Re: Accessing alternate characters in OpenType font

<jgeb4jFjjsdU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4899&group=comp.text.tex#4899

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: peter@silmaril.ie (Peter Flynn)
Newsgroups: comp.text.tex
Subject: Re: Accessing alternate characters in OpenType font
Date: Thu, 9 Jun 2022 14:33:07 +0100
Lines: 23
Message-ID: <jgeb4jFjjsdU1@mid.individual.net>
References: <jgclriFb4i9U1@mid.individual.net>
<1bw1032fc6rpj$.dlg@nililand.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net U/m+loaEvLtEq8lwyOqsTw5tuo0yfydqr0AATeO804xj8ux6NV
Cancel-Lock: sha1:5sc1YT4JFfDmoVjugCEUElBtdZo=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.8.1
Content-Language: en-US
In-Reply-To: <1bw1032fc6rpj$.dlg@nililand.de>
 by: Peter Flynn - Thu, 9 Jun 2022 13:33 UTC

On 09/06/2022 08:41, Ulrike Fischer wrote:
> Am Wed, 8 Jun 2022 23:23:46 +0100 schrieb Peter Flynn:
>
>> I have loaded the font ST.otf with
>>
>> \newfontface{\st}{ST}[StylisticSet=1]
>>
>> and I have written (within \makeatletter)
>>
>> \DeclareTextSymbol{\ST@Aswash}{TU}{"10001}
>> \newcommand{\Aswash}{{\st\ST@Aswash}}
>>
>> and then in the document body:
>
> Try
>
> \st A

Oh duuuh. Thank you. I didn't realise the option activated it, I thought
it just made it available.

Peter

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor