Bug 29224 - RFE: ttmkfdir should add an iso10646-1 encoding
Summary: RFE: ttmkfdir should add an iso10646-1 encoding
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: freetype
Version: 7.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mike A. Harris
QA Contact: Brock Organ
URL:
Whiteboard:
Keywords: FutureFeature
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-02-24 19:38 UTC by Ilya Konstantinov
Modified: 2007-04-18 16:31 UTC (History)
2 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2002-04-02 04:10:56 UTC


Attachments (Terms of Use)
Patch for ttmkfdir (1.03 KB, application/octet-stream)
2001-02-24 19:40 UTC, Ilya Konstantinov
no flags Details

Description Ilya Konstantinov 2001-02-24 19:38:35 UTC
ttmkfdir should add an iso10646-1 encoding for all MS UNICODE TrueType 
fonts regardless of the additional charsets found in them via heuristics. 
This is useful for KDE 2 and UTF-8'ed xterm.

Attached is a simple patch to do just that (and fix a small spelling 
mistake --- sorry, couldn't resist :). I tried sending it to the author, 
but he didn't reply to me yet.

Comment 1 Ilya Konstantinov 2001-02-24 19:40:23 UTC
Created attachment 10960 [details]
Patch for ttmkfdir

Comment 2 Mike A. Harris 2001-02-25 13:41:22 UTC
I will consider this feature at some point in the future.

Comment 3 Mike A. Harris 2001-06-12 20:42:52 UTC
XFree86 4.1.0 by default includes ISO10646-1 font encodings which are
used to generate the ISO8859-* encoded fonts via ucs2any.pl

I'm not sure what your patch does differently that X doesn't already do now,
other than correct the horrible spelling errors that is. ;o)

I'll add the spelling error fixes though.

Comment 4 Mike A. Harris 2001-06-12 21:02:23 UTC
Whoopsie...  I just checked our freetype package and ttmkfdir is written
in C++, not C.  Your patch must be for an older version of ttmkfdir.

Comment 5 Ilya Konstantinov 2001-06-13 13:12:56 UTC
I'm not sure about XFree86 4.1, but XFree86 4.0 (atleast with the FreeType
module) derives the available encodings for a font solely from the fonts.dir
file. It won't offer an iso10646-1 encoding (regardless of the font internals
hinting it's a Unicode font) unless it is in the fonts.dir.

ttmkfdir does a terrific job at figuring out which encodings the font has. It
takes a Unicode TrueType font, and for each language, checks whether it has
enough existing glyphs in the language's Unicode range. Unfortunately, it
forgets to add the basic 'iso10646-1' encoding, which XDrawString16 uses to draw
multilingual text in UCS2-BE encoding.

Comment 6 Mike A. Harris 2001-06-13 16:42:58 UTC
Ok, but what I'm saying is that your patch is patching some files that
are written in C, but ttmkfdir is written in C++ and is part of our
freetype package.

Someone will have to look at this again...

Comment 7 Mike A. Harris 2001-06-30 10:08:04 UTC
Deferring for consideration for future release of Red Hat Linux

Comment 8 Mike A. Harris 2002-04-01 18:25:32 UTC
yshao: can you look at this and comment on if this request has
been already implemented?

TIA

Comment 9 Yu Shao 2002-04-01 23:41:44 UTC
Mike,already implemented, you can close this one.




Note You need to log in before you can comment on or make changes to this bug.