# [luatex] luatex - font encoding for type 1 fonts

Hans Hagen pragma at wxs.nl
Sun Jun 26 17:39:24 CEST 2016

```On 6/26/2016 4:59 PM, Pali Rohár wrote:

> How is generated order of these three characters? It guaranteed that
> character with glyph name "althyphen" is always U+F0000?

in a consistent font yes

>> so, you need to use
>>
>> \chardef\crqq="F0001
>
> Nice, thank you!
>
> Maybe it would be better to access these characters also by glyph name,
> not only Unicode number...

sure, you can use helpers for that but that's beyong this thread as then
we enter the area of how macro packages work and want to deal with is

> And another question, it is possible that in generated PDF will be this
> character mapped to U+201C (only when selecting text in PDF reader)? In
> pdftex it can be achieved by:
>
>   \pdfglyphtounicode{csquotedblright}{201C}
>   \pdfgentounicode=1
>
> which generate CMAP table where glyph name csquotedblright is mapped to
> U+201C. Btw, CMAP table allows to map move glyphs to same unicode
> characters...

hm, even more exceptions for one set of fonts ...

Hans

-----------------------------------------------------------------