Hi all,

I face a really hard work to handle correctly the TTF name encodings and then, 
display informations right (and I didn’t even began to work on rtl or 
vertical layout...). It would be great if some of you could run fontmatrix on 
their font collection in order to bring out unknown platform/encoding pairs.
To do so, just run fontmatrix (>= r188) in console, it will output something 
like :
"MSungStd-Light-Acro.otf" platform_id( 1 ) - encoding_id( 2 ) -  "19" "" 
if it doesn’t know some encoding.

Why I don’t code all pairs? Just have a look at freetype/ttnameid.h and I hope 
you’ll agree that a collaborative and incremental work is the best, if 
unique, option for Fontmatrix ;-)
If you want to be very kind with me, just have 
http://doc.trolltech.com/4.3/qtextcodec.html#details and the ttnameid.h file 
at hand and just rewrite that :
8><==================================================================

else if     ( tname.platform_id == TT_PLATFORM_XXX  
          && tname.encoding_id == TT_XXX )
                {
                        QByteArray array ( ( const char* ) tname.string, 
tname.string_len );
                        QTextCodec *codec = QTextCodec::codecForName ( 
"TEXTCODEC" );
                        avalue = codec->toUnicode ( array );
                }

8><==================================================================

Thanks in advance.

-- 
Pierre Marchand
http://www.oep-h.com

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Undertype-users mailing list
Undertype-users@gna.org
https://mail.gna.org/listinfo/undertype-users

Reply via email to