diff options
author | Owen Taylor <otaylor@redhat.com> | 2000-03-13 15:59:09 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2000-03-13 15:59:09 +0000 |
commit | a6128c9efba496a2193894ec9ebe7a14404df72e (patch) | |
tree | ae1e9c9be775c9b2fe75e51c33b2a9ebd69a272a /TODO | |
parent | df19b2f5a156b717186f8cbc6b1ad39d2401ab90 (diff) | |
download | pango-a6128c9efba496a2193894ec9ebe7a14404df72e.tar.gz |
Memory management functions for PangoItem.
Mon Mar 13 10:54:48 2000 Owen Taylor <otaylor@redhat.com>
* pango/pango-item.[ch]: Memory management functions for PangoItem.
* pango/*.[ch]: Random constification.
* pango/pangox.c pango/pango-layout.c pango/pango-context.c:
Add an extra_attrs field to PangoItem. Use this to handle underlining
for PangoLayout.
* examples/viewer.c (reload_font): Make paragraphs global
to save the complexity of passing it around all over the place.
* pango/pango-layout.[ch] (pango_layout_context_changed): Add
a function to reset the layout on changes to the layout's
context.
* pango/pangox.c (pango_x_make_matching_xlfd): Prefer bitmap
to scaleable if the discrepancy is < 1 pixel. (Probably not
the ideal criterion.)
* pango/pangox.c (pango_x_font_map_for_display): Fix resolution
computation error.
* pango/pango-layout.c (pango_layout_check_lines): Handle
text with embedded newlines.
* pango/pangox.c (pango_x_render_layout): Fix y to refer
to the top of the layout, not the baseline of the first
line.
* pango/pango-layout.c (process_item): Don't wrap if width is
set to -1.
* Makefile.am configure.in **/*.[ch]: move libpango/ directory
and fix all headers to install under include/pango/
Diffstat (limited to 'TODO')
-rw-r--r-- | TODO | 30 |
1 files changed, 19 insertions, 11 deletions
@@ -18,10 +18,9 @@ string and produces lines of glyphs. multiple paragraphs. This could be done entirely within pango_layout_check_lines() -* Attribute handling needs to be added (fg/bg/underline, etc.) - Each PangoItem should have a list of associated non-font - attributes ... though this would require a bit more thought - as to memory-management of PangoItem, which is currently add-hoc. +* 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. X rendering =========== @@ -32,8 +31,12 @@ X rendering pango_x_get_context() and then have some sort of X specific font loading interface. +* It is not clear that X is interpreting the ink_rect the same way + as we are. There is a bit of fudging in the underline drawing + code to deal with this and make the underlines look symetric. + Other rendering engines -====================== +======================= * Somebody should start working on a libart font-system / renderer soon, to make sure that the interfaces are suitable. @@ -68,15 +71,22 @@ Documentation * Much or all of the X Fonts document from pango.org needs to be moved into the API reference. +Fonts +===== + +* Add handling for baseline adjustment + +* pango_context_list_fonts() does not properly suppress duplicates + when multiple font maps are involved + General ======= -* Move font sizes to 1000ths of a point where they are still doubles. - * Remove the extraneous font argument from the script_shape virtual function in ShapeEngine. * rename pango_context_set_size() to pango_context_set_font_size() +* settle on either _free or _destroy * PangoAttrList currently takes the policy of "most recent wins" when multiple attributes of the same type are present for a range. @@ -89,9 +99,6 @@ General loads these from the current directory. (There are security implications with the current stuff) -* pango_context_list_fonts() does not properly suppress duplicates - when multiple font maps are involved - * Report errors from functions, these errors include such things. - Invalid string @@ -113,4 +120,5 @@ General * Underline attribute should be an enumeration (none/single/double/squiggle/low, where low is below the ink rect - a style appropriate for underline - accelerators.)
\ No newline at end of file + accelerators.) + |