summaryrefslogtreecommitdiff
path: root/ChangeLog
Commit message (Collapse)AuthorAgeFilesLines
* Handle also ft_pixel_mode_mono glyphs.Tor Lillqvist2000-08-201-1/+9
| | | | | | | | | | | | | | | 2000-08-21 Tor Lillqvist <tml@iki.fi> * pango/pangoft2.c (pango_ft2_render): Handle also ft_pixel_mode_mono glyphs. * pango/pangoft2*: Portability enhancements (non-gcc). * examples/viewer-{ft2,win32}.c: One more 1000 vs. PANGO_SCALE fix. * pango/module-defs.c.win32: New file. * pango/Makefile.am: Distribute it.
* examples/viewer-ft2.c Replace division or multiplication with 1000 (whichTor Lillqvist2000-08-201-1/+5
| | | | | | | | | 2000-08-20 Tor Lillqvist <tml@iki.fi> * examples/viewer-ft2.c * examples/viewer-win32.c: Replace division or multiplication with 1000 (which was the old PANGO_SCALE value) to use PANGO_SCALE and PANGO_PIXELS instead.
* Move most all of the TODO items here to the XML file. This needs to beOwen Taylor2000-08-201-0/+5
| | | | | | | Sun Aug 20 13:45:08 2000 Owen Taylor <otaylor@redhat.com> * TODO.xml TODO: Move most all of the TODO items here to the XML file. This needs to be built using the Python script gtk+/docs/make-todo.
* New file.Tor Lillqvist2000-08-201-0/+4
| | | | | | | | | | | 2000-08-20 Tor Lillqvist <tml@iki.fi> * pango/pangoft2.def: New file. * modules/engine.def: Delete. Was duplicate of module.def. * examples/viewer-ft2.c: Cosmetic changes, remove accidentally left in hardcoded test file name.
* Add parameter telling whether to print warning or not if string isn'tTor Lillqvist2000-08-201-0/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-08-20 Tor Lillqvist <tml@iki.fi> * pango/pango-utils.c (pango_parse_*): Add parameter telling whether to print warning or not if string isn't recognised. Use g_strncasecmp(). * pango/pango-utils.h: Change prototype accordingly. * pango/pangox-fontmap.c * pango/pangowin32-fontmap.c: Change calls correspondingly. * pango/pangowin32.h: * pango/pangowin32.c: Cosmetic changes, dead code removal. * pango/pangoft2.h * pango/pangoft2-private.h * pango/pangoft2.c * pango/pangoft2-fontmap.c * pango/pangoft2-fontcache.c: New files implementing a FreeType2 backend. Used only on Win32 so far, but doesn't contain Win32-specific code per se, so if somebody wants to try it out on X11, too, be my guest. It works, more or less, but there are some details still to sort out. Performance needs to be improved. Debugging printouts still present. Font path currently hardcoded to C:\windows\fonts, heh. Owen says he doesn't think it's a good idea to use ths on Win32, but I'll try anyway. If it turns out using the native Win32 GDI backend is better after all, oh well. * pango/makefile.mingw: Delete. Move contents to makefile.mingw.in. * pango/makefile.mingw.in: New file. Add rules for FreeType2 backend. Add FreeType2 CFLAGS and LIBS. * pango/Makefile.am: Generate makefile.mingw. (EXTRA_DIST): Add FreeType2 backend sources, and makefile.mingw{,.in} * modules/basic/basic-win32.c: Couple of cosmetic changes. * modules/basic/Makefile.am: Generate makefile.mingw. (EXTRA_DIST): Add basic-ft2.c, and makefile.mingw{,.in} * modules/basic/makefile.mingw: Delete. Move contents to makefile.mingw.in. * modules/basic/makefile.mingw.in: New file. Add rule for basic-ft2. Add FreeType2 CFLAGS and LIBS. * examples/viewer-win32.c (read_file): Fix error messages. (draw): Get HDC from GDK once for all paragraphs. * examples/viewer-ft2.c: New file. The FT_Bitmap (256-level bitmap) produced by the FreeType2 backend is copied to the GtkLayout window using gdk_draw_gray_image from GdkRGB (!). Yes, this is kinda circular dependency between Pango and GTK+. * examples/makefile.mingw: Delete. Move contents to makefile.mingw.in. * examples/makefile.mingw.in: New file. Add rules for viewer-ft2. Add FreeType2 CFLAGS and LIBS. * examples/Makefile.am: Generate makefile.mingw. (EXTRA_DIST): Add viewer-win32.c and viewer-ft2.c, and makefile.mingw{,.in}
* remove /usr/includeHavoc Pennington2000-08-111-0/+6
| | | | | | | | 2000-08-11 Havoc Pennington <hp@redhat.com> * pangox.pc.in (Cflags): remove /usr/include * pango.pc.in (Cflags): remove /usr/include
* #include <string.h>Elliot Lee2000-08-091-0/+1
|
* Fix incorrect list rearrangement that caused some segfaults. Pay attentionElliot Lee2000-08-091-0/+6
| | | | | | | | 2000-08-08 Elliot Lee <sopwith@redhat.com> * pango/modules.c: Fix incorrect list rearrangement that caused some segfaults. * pango/pango-layout.c (pango_layout_line_x_to_index): Pay attention to shape attributes (not perfect since the layout of chars inside a shaped run is unknown, but gives start index of the chars in the run).
* If the first pango_skip_space fails, remember to free enginepair beforeElliot Lee2000-08-081-0/+8
| | | | | | | | * pango/modules.c: If the first pango_skip_space fails, remember to free enginepair before continuing. * pango/pango-layout.c (pango_layout_set_attributes): unref old attr list after reffing new one, in case setting to same thing. * pango/pango-attributes.c (pango_attr_list_insert_internal): Proper fix from Owen for the infinite loop.
* Fix segfault when tmp_list has no 'prev' pointer. Infinite loops do notElliot Lee2000-08-041-0/+8
| | | | | | | | | | 2000-08-03 Elliot Lee <sopwith@redhat.com> * pango/modules.c: Fix segfault when tmp_list has no 'prev' pointer. * pango/pango-attributes.c (pango_attr_list_insert_internal): Infinite loops do not fast programs make. * pango/pango-context.c: Set a default font size so that things don't go boom if someone forgets to set it themselves. * pango/pango-layout.c (pango_layout_index_to_pos): Exclude newlines from consideration. (pango_layout_line_index_to_x): Take shape attributes into consideration when determining position.
* Fix problem with the way extents for the layout lines were summed togetherOwen Taylor2000-08-021-0/+6
| | | | | | | | Wed Aug 2 12:00:53 2000 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (pango_layout_get_extents): Fix problem with the way extents for the layout lines were summed together in the vertical direction.
* Remove hardcoded path to my home directory! Allow specifying the file onOwen Taylor2000-07-311-0/+9
| | | | | | | | | | | Sat Jul 29 21:26:30 2000 Owen Taylor <otaylor@redhat.com> * examples/viewer-qt.[ch] (ViewerWindow): Remove hardcoded path to my home directory! Allow specifying the file on the command line. * pango/modules.c (process_module_file): Fix bug in parsing of range strings.
* pkg-config info filesHavoc Pennington2000-07-311-0/+8
| | | | | | | | | | 2000-07-31 Havoc Pennington <hp@redhat.com> * pango.pc.in, pangox.pc.in: pkg-config info files * Makefile.am: dist/install .pc files * configure.in: output .pc files
* Destroy the layout->font_desc to avoid a memory leak.Martin Baulig2000-07-311-0/+5
| | | | | | | 2000-07-28 Martin Baulig <baulig@suse.de> * pango/pango-layout.c (pango_layout_finalize): Destroy the layout->font_desc to avoid a memory leak.
* Typo.Tor Lillqvist2000-07-271-1/+1
|
* pango/pango.def New files, forgot to commit earlier.Tor Lillqvist2000-07-271-0/+5
| | | | | | | 2000-07-27 Tor Lillqvist <tml@iki.fi> * pango/pango.def * pango/pangowin32: New files, forgot to commit earlier.
* include <stdlib.h>Owen Taylor2000-07-221-0/+6
| | | | | | | | Sat Jul 22 10:52:06 2000 Owen Taylor <otaylor@redhat.com> * pango/pango-utils.c: include <stdlib.h> * configure.in: s/FRIBID_CONFIG/FRIBIDI_CONFIG/.
* A bit of code cleanup.Owen Taylor2000-07-211-0/+14
| | | | | | | | | | | | | | | | Fri Jul 21 15:17:26 2000 Owen Taylor <otaylor@redhat.com> * 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]:
* Free buffer strings.Owen Taylor2000-07-211-0/+19
| | | | | | | | | | | | | | | | | | | | | Fri Jul 21 09:59:10 2000 Owen Taylor <otaylor@redhat.com> * pango/modules.c (process_module_file): Free buffer strings. * pango/pangox-fontmap.c (pango_x_real_get_coverage_win): Add caching of coverage maps on a persistant subwindow of the root window. This window contains a property for each "lang|xlfd,xlfd" which is the result of pango_coverage_to_bytes. * pango/pango-context.c (pango_context_finalize): Free the font description. * pango/pango-coverage.c (pango_coverage_to/from_bytes): Added functions to covert a PangoCoverage structure too and from a flat block of bytes. * configure.in (X_LIBS): Add a check to detect fribidi being compiled against glib-1.2.x.
* Add some more fonts. Document where to get the fonts.Tor Lillqvist2000-07-201-0/+3
| | | | | | | 2000-07-20 Tor Lillqvist <tml@iki.fi> * examples/pangowin32.aliases: Add some more fonts. Document where to get the fonts.
* Use 0xFFFE to produce the default glyph. (create_bitmap_dibsection): ZeroTor Lillqvist2000-07-191-0/+10
| | | | | | | | | | | | 2000-07-20 Tor Lillqvist <tml@iki.fi> * pango/pangowin32.c (subfont_has_glyph): Use 0xFFFE to produce the default glyph. (create_bitmap_dibsection): Zero out the bitmap. * pango/pangowin32-fontmap.c (pango_win32_guess_subranges): Set some additional Unicode subranges for fonts that claim covering the Vietnamese codepage.
* Don't try to use the ! command, not available in all systems. Move the !Tor Lillqvist2000-07-191-0/+17
| | | | | | | | | | | | | | | | | | | 2000-07-19 Tor Lillqvist <tml@iki.fi> * configure.in: Don't try to use the ! command, not available in all systems. Move the ! inside the test instead. * pango-config.in: Change order of --cflags output, so that we can build with both GLib 1.2 and 1.3 installed. * modules/devanagari/dev-ligatures.h: No C++ comments, thanks. * pango/break.c: Fix gccism, non-constant initailiser. * pango/pango-fontmap.c: Don't return value from void functions. * pango/pango-utils.c: Must have at least empty statement after a label.
* Add Tahoma and Angsana New, these common fonts have Thai characters.Tor Lillqvist2000-07-181-0/+13
| | | | | | | | | | | | | | | 2000-07-19 Tor Lillqvist <tml@iki.fi> * examples/pangowin32.aliases: Add Tahoma and Angsana New, these common fonts have Thai characters. * pango/pangowin32-private.h: Rename fonts and n_fonts members to logfonts and n_logfonts, as that is what they are. * pango/pangowin32.c: Bug fixes. Works much better now. (pango_win32_font_get_glyph_extents): Set y offset correctly. (subfont_has_glyph): Call SetTextAlign. Select the font into the HDC before calling GetTextMetrics.
* Correct ChangeLog entry.Tor Lillqvist2000-07-181-2/+2
|
* Add the pangowin32 sources.Tor Lillqvist2000-07-181-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | 2000-07-18 Tor Lillqvist <tml@iki.fi> * pango/Makefile.am (EXTRA_DIST): Add the pangowin32 sources. * pango/pangox.c (lang_texts): Add some Latin-1 to the Finnish and Swedish strings. * modules/module.def: New file. * modules/Makefile.am (EXTRA_DIST): Add it. * modules/basic/Makefile.am (EXTRA_DIST): Add basic-win32.c. * */makefile.mingw: Small updates. * pango/pangowin32.c * pango/pangowin32-fontmap.c * modules/basic/basic-win32.c * examples/viewer-win32.c: Bug fixes. Remove dead code. Now the Win32 implementation seems to work, except for a few glitches.
* pango/pango-utils.h pango/pango-utils.c pango/pangox-fontmap.c Move theTor Lillqvist2000-07-161-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-07-16 Tor Lillqvist <tml@iki.fi> * pango/pango-utils.h * pango/pango-utils.c * pango/pangox-fontmap.c * pango/pangowin32-fontmap.c: Move the get_{style,variant, weight,stretch} functions to pango-utils.c, and rename them to pango_parse_*. Would otherwise be duplicated in pangox and angowin32. * pango/pango.def: Export them. * pango/pango-font.h: Add PANGO_WEIGHT_ULTRALIGHT, PANGO_WEIGHT_LIGHT, PANGO_WEIGHT_EXTRABOLD and PANGO_WEIGHT_HEAVY values to PangoWeight. * pango/pango-utils.c: Recognize the new weight strings. * pango/pangowin32.c (pango_win32_list_subfonts): Don't g_free the subfont_list from the subfonts_by_subrange hash table... * pango/pangowin32-fontmap.c (pango_win32_font_map_read_alias_file): Also set the other properties in the LOGFONT, not only the face name. (pango_win32_insert_font): Insert a pointer to a freshly allocated LOGFONT in the hash table, not the one passed in as a parameter, which could be (and in fact, *is*) a pointer to an auto variable. Quantize the description weight values to exact PANGO_WEIGHT_* values. (pango_win32_get_unknown_glyph): Use subfont 1. * examples/viewer-win32.c: (split_paragraphs): Don't include the newline. (draw): Correct 1st parameter to gdk_win32_hdc_{get,release}.
* Forgot to mention the makefile.mingw files in ChangeLog. Add config.h.win32.Tor Lillqvist2000-07-151-0/+3
|
* pango/pangowin32.h pango/pangowin32-private.h pango/pangowin32-fontcache.cTor Lillqvist2000-07-151-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-07-15 Tor Lillqvist <tml@iki.fi> * pango/pangowin32.h * pango/pangowin32-private.h * pango/pangowin32-fontcache.c * pango/pangowin32-fontmap.c * modules/basic/basic-win32.c * examples/viewer-win32.c * examples/pangowin32.aliases: New files. Start of a Win32 implementation. Does not work yet. * configure.in: Chek for dirent.h and unistd.h. * pango/pango-utils.h * pango/pango-utils.c (pango_get_sysconf_subdirectory, pango_get_lib_subdirectory): New functions, for better portability, to enable installation-time choice of directory (on Windows) instead of compile-time. Use these instead of SYSCONFDIR "/pango" and LIBDIR "/pango". (pango_split_file_list): Fix comment, the function splits on searchpath separators, not commas. Use G_SEARCHPATH_SEPARATOR_S for portability. Don't try to expand '~' as home directory on Windows. (read_config): Use pango_get_sysconf_subdirectory(). * pango/modules.c (read_modules): Use pango_get_sysconf_subdirectory(). Don't crash if a module file cannot be opened. * pango/querymodules.c: Include config.h Conditionalize inclusion of dirent.h and unistd.h. Use platform-specific shared library extension. Use pango_get_lib_subdirectory().
* Add clealyu fontsPANGO_0_12Owen Taylor2000-07-141-0/+2
| | | | * examples/pangox.aliases: Add clealyu fonts
* Released 0.12Owen Taylor2000-07-141-2/+11
| | | | | | | | | | | | | Thu Jul 6 15:24:38 2000 Owen Taylor <otaylor@redhat.com> * Released 0.12 * configure.in: Use AM_PATH_GLIB_2_0() * pango-config.in: Use @FRIBIDI_LIBS@, not -lfribidi * pango-config.in: Fix accidental inclusion -I lib/glib/include/
* Fix bug in home directory substitution.Owen Taylor2000-07-111-0/+5
| | | | | | | Mon Jul 10 10:42:42 2000 Owen Taylor <otaylor@redhat.com> * pango/pango-utils.c (pango_split_file_list): Fix bug in home directory substitution.
* Implement this function, to get logical attributes without aHavoc Pennington2000-07-061-0/+6
| | | | | | | | 2000-07-06 Havoc Pennington <hp@redhat.com> * pango/break.c (pango_get_log_attrs): Implement this function, to get logical attributes without a PangoAnalysis. (pango_break): Fix bug in word stop location
* Released 0.12Owen Taylor2000-07-061-0/+7
| | | | | | | | | Thu Jul 6 15:24:38 2000 Owen Taylor <otaylor@redhat.com> * Released 0.12 * gdk/Makefile.am: Fix missing \ which was causing srcdir != builddir builds to fail.
* UpdateOwen Taylor2000-07-061-0/+4
| | | | | | Thu Jul 6 15:16:28 2000 Owen Taylor <otaylor@redhat.com> * docs/pango-sections.txt docs/tmpl/*: Update
* Handle the case where the byte offset is outside the layout.Havoc Pennington2000-07-031-0/+5
| | | | | | | 2000-07-03 Havoc Pennington <hp@redhat.com> * pango/pango-layout.c (pango_layout_index_to_pos): Handle the case where the byte offset is outside the layout.
* Fix up set_font_description() for tab spaces.Owen Taylor2000-07-021-0/+5
| | | | | | | Sun Jul 2 18:06:01 2000 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (get_tab_pos): Fix up set_font_description() for tab spaces.
* New function that inserts before other attributes with matching startOwen Taylor2000-07-021-0/+10
| | | | | | | | | | | | Sun Jul 2 17:59:56 2000 Owen Taylor <otaylor@redhat.com> * pango/pango-attributes.[ch] (pango_attr_list_insert_before): New function that inserts before other attributes with matching start index. * pango/pango-layout.[ch] (pango_layout_set_font_description): Add the ability to set a default font description on the layout, overriding the font description from the context.
* Add a PANGO_PIXELS macro to convert from pango units to device units andOwen Taylor2000-07-021-0/+9
| | | | | | | | | | | Sun Jul 2 17:19:11 2000 Owen Taylor <otaylor@redhat.com> * pango/pango-types.h: Add a PANGO_PIXELS macro to convert from pango units to device units and round. * pango/pango-layout.[ch]: Add convenience functions pango_layout_get_pixel_extents, pango_layout_get_size, pango_layout_get_pixel_size pango_layout_line_get_pixel_extents.
* A bunch of simple functions for reading from files, manipulating stringsOwen Taylor2000-06-301-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | Fri Jun 30 16:46:31 2000 Owen Taylor <otaylor@redhat.com> * pango/pango-utils.[ch] Makefile.am: A bunch of simple functions for reading from files, manipulating strings as necessary for config files. Also, a simple gnome-config/win.ini style config file reader. * pango/modules.c: Remove DOTFILES stuff. Instead, read names of modules file from pangorc. (Which can be set from PANGO_RC_FILE). Rewrite parsing code using pango-utils.c. * pango/pangox-fontmap.c: Read list of files from PangoX/AliasFiles key. Rewrite parsing code for alias files using pango-utils.c. * examples/pangox.aliases: Move to new name from pangox_aliases, reformat using new parsing code. * examples/pangorc (AliasFiles) examples/pango-viewer: Add a pangorc file for in-place testing. * pango/querymodules.c (main): Add comment to the top of the output indicating that the file should not be hand-edited.
* Fix various aspects of expanding coverage tables beyond the first 256Owen Taylor2000-06-291-0/+6
| | | | | | | | Thu Jun 29 18:13:47 2000 Owen Taylor <otaylor@redhat.com> * pango/pango-coverage.c: Fix various aspects of expanding coverage tables beyond the first 256 blocks. (Based on patch from ChiDeok Hwang.)
* New version from Karl Koehler merged with the changes for the GLib unicodeOwen Taylor2000-06-291-5/+14
| | | | | | | Thu Jun 29 16:35:41 2000 Owen Taylor <otaylor@redhat.com> * modules/arabic/{*.c,Makefile.am}: New version from Karl Koehler merged with the changes for the GLib unicode functions.
* Remove tests for libunicodeOwen Taylor2000-06-211-0/+10
| | | | | | | | | | | | Wed Jun 21 12:11:56 2000 Owen Taylor <otaylor@redhat.com> * configure.in: Remove tests for libunicode * pango/utils.[ch]: Removed. The functions from here are now in GLib. * **.[ch]: Removed use of libunicode and utils.c in favor of Unicode functions in GLib. Requires latest GLib from CVS.
* GTK+ should compile now... sorry about the mess...Havoc Pennington2000-06-211-0/+11
| | | | | | | | | | | | | | 2000-06-14 Havoc Pennington <hp@redhat.com> * pango/pango-attributes.c (pango_attr_list_copy): Function to copy the attribute list. 2000-06-13 Havoc Pennington <hp@redhat.com> * pango/pango-layout.h: Convert PangoLayout to GObject * pango/pango-context.h: Convert to PangoContext to GObject
* g_strcasecmp returns 0 when strings are equal - negate return value.Elliot Lee2000-06-191-0/+14
| | | | | | | | | | | | | | | | | | 2000-06-11 Elliot Lee <sopwith@redhat.com> * pango/fonts.c (pango_font_description_compare): g_strcasecmp returns 0 when strings are equal - negate return value. 2000-06-09 Elliot Lee <sopwith@redhat.com> * pango/pango-coverage.[ch]: Return 'coverage' from pango_coverage_ref. 2000-06-08 Elliot Lee <sopwith@redhat.com> * pango/Makefile.am: Add DOTMODULESDIR define to make it easier to change location of .modules files. * pango/modules.c: Make use of aforesaid define. Also scan the DOTMODULESDIR directory for multiple config files instead of just pango.modules. Also fclose() opened files.
* *** empty log message ***Owen Taylor2000-06-081-0/+7
|
* Include X_LIBS in libraries for 'pangox' target.Elliot Lee2000-06-081-0/+3
| | | | Include X_LIBS in libraries for 'pangox' target.
* New function to copy a PangoAttrIterator.Havoc Pennington2000-06-071-0/+5
| | | | | | | 2000-06-07 Havoc Pennington <hp@redhat.com> * pango/pango-attributes.c (pango_attr_iterator_copy): New function to copy a PangoAttrIterator.
* Add a function to free cached information for a particular display. (ThisOwen Taylor2000-06-061-2/+14
| | | | | | | | | | | Mon Jun 5 20:45:12 2000 Owen Taylor <otaylor@redhat.com> * pango/pangox-fontmap.c (pango_x_shutdown_display): Add a function to free cached information for a particular display. (This is basically pango_x_fontmap_destroy()) * pango/pangox.c pango/pangox-private.h pango/pangox-fontmap.c: Make a XFont always keep a pointer to (and ref) a fontmap.
* Fix problem with unloading fonts.Owen Taylor2000-06-051-0/+14
| | | | | | | | | | | Mon Jun 5 15:35:03 2000 Owen Taylor <otaylor@redhat.com> * pango/pangox-fontcache.c (pango_x_font_cache_unload): Fix problem with unloading fonts. * pango/pangox-fontmap.c pango/pangox-private.h pangox/pangox.c: Add a simple PangoXFont; get rid of the eternal caching of all fonts.
* added other usually used aliases for thai fontsPablo Saratxaga2000-06-031-0/+5
|