From ebbd946ac65ac1a20a46652b234288280e7ee5fd Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Fri, 21 Jul 2000 19:19:50 +0000 Subject: A bit of code cleanup. Fri Jul 21 15:17:26 2000 Owen Taylor * pango/pango-context.c (pango_itemize): A bit of code cleanup. * pango/pango-attributes.[ch]: Add a new attribute type PangoAttrShape, for imposing specific shapes on glyphs. This is used for handling embedded pixmaps and similar objects. * pango/pango-layout.c: Hnadle PangoAttrShape. * pango/pango-context.[ch]: --- TODO | 37 +++++-------------------------------- 1 file changed, 5 insertions(+), 32 deletions(-) (limited to 'TODO') diff --git a/TODO b/TODO index 8c8f608d..3915cd99 100644 --- a/TODO +++ b/TODO @@ -13,11 +13,6 @@ string and produces lines of glyphs. * Add spacing parameter as illustrated; this should be a quick (10 minute) addition. -* Although PangoLayout isn't intended to handle large amounts - of text, it should be able to handle embedded "\n" and simple - multiple paragraphs. This could be done entirely within - pango_layout_check_lines() - * pango_layout_context_changed() is a hack. Either the context should have change-notification, or else the layout should make a copy of the context when the context is set. @@ -25,15 +20,6 @@ string and produces lines of glyphs. * optimize right alignment for width == -1 and only a single line. (Currently this causes a useless call to gtk_layout_get_extents.) -* There is currently a serious problem in that every attribute - causes items to be broken into separately shaped runs. That means - that selections can't be handled as background/foreground attributes. - - Since, for selections, you need to be able to select partial - glyphs, doing this any different would basically mean having to - separate out these attributes from the rest of the attributes, - and handle them separately while rendering a layout. - X rendering =========== @@ -53,16 +39,9 @@ X rendering This probably means adding a attribute type which contains a PangoFont *, and overrides the description. -* pangox.c needs to be split into at least two separate files. - - ( - Probably along the lines of - - 1) font map - 2) font - 3) rendering - ) - +* we don't handle the case where the set of fonts on the server + changes, either for the cached list of fonts, or for for the + information cached on the PANGO_COVERAGE_WIN on the X server. Other rendering engines ======================= @@ -82,11 +61,6 @@ Engines Language Modules ================ - * It would be nice to have X based shapers for a few more scripts; - Hindi is one obvious need. (Actually, there may be a need for - a generic framework for Indic shapers to be developed. A - libpango-indic...) - * Once we have a libart renderer, porting Raph's devanagari shaper to Pango and C (from Perl) would be a cool demo and test case. @@ -147,9 +121,6 @@ General draws a placeholder character ... and does that in a way that always works. -* Finish coverting over from utils.c to Tom Tromey's libunicode. - Add the remaining useful functions from utils.c into libunicode. - * s/num_chars/n_chars/ etc. (Always use n_ as enumeration prefix) * Fix handling of 'trailing' in x_to_index() to handle clusters @@ -163,3 +134,5 @@ General define script tags and put those (optionally?) in the interface? +* pango_glyph_string_set_size() does not handle the fact that + n_glyphs can be less than n_chars! -- cgit v1.2.1