[luatex] From glyph node to font to glyph width

Yannis Haralambous yannis.haralambous at telecom-bretagne.eu
Wed Jan 21 13:36:42 CET 2009


wonderful, thanks!
(I will update the sample code on luatexwiki)

Le 21 janv. 09 à 13:32, Taco Hoekwater a écrit :

>
>
> Yannis Haralambous wrote:
>> Could you please tell me how to access the font of a glyph?
>>
>> When traversing a horizontal node list I get nodes of type glyph,  
>> if t
>> is such a node then t.font gives me an identifier. How do I get the  
>> font
>> with that identifier?
>> I have tried font[t.font] but it didn't worked. The goal is to obtain
>> the TeX dimensions of the glyph.
>
> font.fonts[t.font]
>
> Best wishes,
> Taco
>

--
+ 
-----------------------------------------------------------------------+
| Yannis Haralambous, Ph.D.      yannis.haralambous at telecom- 
bretagne.eu |
| Directeur d'Études                      http://omega.enstb.org/ 
yannis |
|                                             Tel. +33  
(0)2.29.00.14.27 |
|                                             Fax  +33  
(0)2.29.00.12.82 |
| Département  
Informatique                                              |
| TELECOM  
Bretagne                                                      |
| Technopôle de Brest Iroise, CS 83818, 29238 Brest CEDEX 3,  
France     |
| Coordonnées Google-Earth : 48°21'31.57"N  
4°34'16.76"W                 |
+ 
-----------------------------------------------------------------------+
                             ...pour distinguer l'extérieur d'un  
aquarium,
                                            mieux vaut n'être pas  
poisson

                            ...the ball I threw while playing in the  
park
                                           has not yet reached the  
ground

               Es gab eine Zeit, wo ich nur ungern über Schubert  
sprechen,
            nur Nächtens den Bäumen und Sternen von ihm vorerzählen  
mögen.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/luatex/attachments/20090121/99daca3b/attachment-0002.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Yannis Haralambous.vcf
Type: text/directory
Size: 508 bytes
Desc: not available
Url : http://tug.org/pipermail/luatex/attachments/20090121/99daca3b/attachment-0001.bin 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/luatex/attachments/20090121/99daca3b/attachment-0003.html 


More information about the luatex mailing list