Debian Codegraph @

TODO

raw
1 * A few constants aren't available with older versions of Freetype. They
2 should do something better than simply not exist, probably croaking if
3 they are used.
4
5 * Some characters don't have an outline or bitmap, but can be put together
6 from other glyphs. E.g., magick.pl doesn't work with kochi-minco.ttf
7 because it doesn't have a glyph for Acircumflex, but fontforge says it
8 does provide that character, just that it doesn't have an outline or
9 bitmap. It says it's composed of U+0041 and U+0302.
10 The current situation is that bitmap() will return a 0x0 bitmap, which
11 breaks bitmap_magick(), and the outline doesn't cause any problems
12 apart from not being there.
13
14 * Tests:
15 * decomposing outlines. Also test the postscript() and svg_path() methods.
16 * bitmap_magick() -- skip tests if Image::Magick not installed
17
18 * Maybe provide some defaults for $face->set_char_size(), so that you don't
19 have to pass in all four values.
20
21 * $face->glyph_from_char() should work with Unicode characters properly.
22
23 * There should be a way of getting glyphs by index.
24
25 * The underline methods ($face->underline_position() and
26 $face->underline_thickness()) should scale their values to the same
27 scale as the font.
28
29 * Provide an interface for doing transformations. This also implies
30 supporting the 'advance' vector in glyph slots. It could be accessed
31 with an 'advance()' method, returning just the prevalent component in
32 scalar context. Means 'horizontal_advance()' would be rarely needed.
33
34 * Make $face->kerning() accept glyph objects as well as indices,
35 and maybe also allow strings. In the documentation highlight the
36 fact that it accepts glyph indices, not Unicode codepoints, and
37 explain why.
38
39 * Handle vertical layout, by accepting a flag to $library->face().
40 Various places will have to support this:
41 * $face->kerning() should return the y kerning when called in scalar
42 context and when in vertical layout.
43 * Make sure the metrics information returned is sensible.
44 * Make it easy somehow to position characters centered around
45 the (vertical) baseline. (FreeType might do this automatically.)
46
47 * What about top-side bearing, does it mean anything in horizontal layout?
48 If so, bind it.
49
50 * Perhaps an interface for selecting charmaps.
51
52 * Check that the things passed to $glyph->outline_decompose() are actually
53 code refs.
54
55 * Provide a simple way to generate characters in a Type3 font (or whatever)
56 to output Postscript less stupidly.
57
58 * Provide convenience method for generating PDF fragments from outline.
59
60 * Binding of FT_HAS_MULTIPLE_MASTERS, if I can work out what it's for.
61
62 * Some support for doing ligatures would be nice.
63
64 * Maybe the library version would be better as a v1.2.3 type value?
65 Might make comparison easier.
66
67 * Attaching files: some support in the $face->attach_file() method,
68 but it's completely untested.
69
70 * Need to test scalable fonts that also provide bitmaps. If we're to
71 use the bitmaps then $glyph->bitmap() will have to be more clever
72 about deciding when to render. kochi-mincho provides many fixed sizes.
73
74 * Make $glyph->postscript() (and any similar methods I add) work with
75 bitmap glyphs, by getting the bitmap and outputting appropriate PS code
76 to draw it.
77
78 * If FT_LOAD_NO_SCALE is used, perhaps $glyph->outline_decompose() should
79 return integers, rather than trying to treat the values wrongly as 26.6.
80
81 * Provide some way of iterating over glyphs rather than characters.
82 For example, listing 'cursor.bdf' finds no characters, because they all
83 have "ENCODING -1 0".
84
85 * Provide a README, if I can think of anything useful to put in it.
86
87 * Figure out how to make the outline available even after the bitmap was
88 first loaded, without the kludge of always loading the outline (which
89 is probably inefficient). See the comments in qefft2_glyph_bitmap().