summaryrefslogtreecommitdiff
path: root/pango
Commit message (Collapse)AuthorAgeFilesLines
* Optimization. Do not g_utf8_get_char at all. (#305323, Paolo Borelli)Behdad Esfahbod2005-06-181-21/+26
| | | | | | | 2005-06-18 Behdad Esfahbod <pango@behdad.org> * pango/break.c (pango_find_paragraph_boundary): Optimization. Do not g_utf8_get_char at all. (#305323, Paolo Borelli)
* Remove excess return (#307741, Damien Carbery)Owen Taylor2005-06-161-1/+1
| | | | | | | 2005-06-16 Owen Taylor <otaylor@redhat.com> * pango/pangocairo-fcfont.c (pango_cairo_fc_font_unlock_face): Remove excess return (#307741, Damien Carbery)
* Fix some missing case variants in the switch statement. (#169852, MortenOwen Taylor2005-06-141-0/+2
| | | | | | | | 2005-06-14 Owen Taylor <otaylor@redhat.com> * pango/pango-utils.c (pango_parse_style): Fix some missing case variants in the switch statement. (#169852, Morten Welinder)
* Hand edit to fix a bug in the 4.0.0 data tables. (#173096, SukhjinderOwen Taylor2005-06-141-1/+1
| | | | | | | | | | | | 2005-06-14 Owen Taylor <otaylor@redhat.com> * pango/pango-script-table.h (struct): Hand edit to fix a bug in the 4.0.0 data tables. (#173096, Sukhjinder Sidhu) * tools/gen-script-table.pl: Some updates to handle newer formats (not actually regenerating tables at the moment, since the changes are large)
* #307433, Sebastien BacherOwen Taylor2005-06-141-0/+1
| | | | | | | | | | | | 2005-06-14 Owen Taylor <otaylor@redhat.com> #307433, Sebastien Bacher * Makefile.am (EXTRA_DIST): Name the Change.pre-* correctly. * pango/Makefile.am (libpango_1_0_la_SOURCES): Add pango-color-table.h.
* Fix docs, handle a lone '~' (#169851, Morten Welinder)Owen Taylor2005-06-141-1/+6
| | | | | | | 2005-06-14 Owen Taylor <otaylor@redhat.com> * pango/pango-utils.c: Fix docs, handle a lone '~' (#169851, Morten Welinder)
* Chain up from finalize. (#307547, Paolo Borelli)Owen Taylor2005-06-144-4/+12
| | | | | | | | | | | 2005-06-14 Owen Taylor <otaylor@redhat.com> * pango/opentype/pango-ot-info.c (pango_ot_info_finalize) pango/opentype/pango-ot-ruleset.c (pango_ot_ruleset_finalize): Chain up from finalize. (#307547, Paolo Borelli) * pango/opentype/pango-ot-info.c (pango_ot_info_finalizer): make accidentally public function static.
* Fix potential leak of state->base_font. (#168930, Ben Maurer, AivarsOwen Taylor2005-06-141-0/+2
| | | | | | | | 2005-06-14 Owen Taylor <otaylor@redhat.com> * pango/pango-context.c (itemize_state_finish): Fix potential leak of state->base_font. (#168930, Ben Maurer, Aivars Kalvans)
* Add a (hopefully temporary) cache in front of getting metrics from Cairo.Owen Taylor2005-06-141-46/+87
| | | | | | | | | | 2005-06-10 Owen Taylor <otaylor@redhat.com> * pango/pangocairo-fcfont.c: Add a (hopefully temporary) cache in front of getting metrics from Cairo. * pango/pangocairo-fcfont.c: Remove some cast checks in critical code paths.
* Add a new context_substitute() virtual function that replacesOwen Taylor2005-06-146-10/+92
| | | | | | | | | | | | | | | | 2005-05-17 Owen Taylor <otaylor@redhat.com> * pango/pangofc-fontmap.[ch]: Add a new context_substitute() virtual function that replaces default_substitute() and adds a PangoContext argument. * pango/pangocairo.h pango/pangocairo-fontmap.c docs/pango-sections.txt: Add pango_cairo_context_set/get_hinting() to control hinting on individual contexts. * pango/pangocairo-fcfont.c pango/pangocairo-fcfontmap.c: Implement hinting control for the for the fontconfig/cairo backend.
* pango/pangocairo-render.c (pango_cairo_renderer_draw_glyphs): Handle glyphOwen Taylor2005-05-162-25/+48
| | | | | | | | | | | 2005-05-16 Owen Taylor <otaylor@redhat.com> * pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_glyph_extents): pango/pangocairo-render.c (pango_cairo_renderer_draw_glyphs): Handle glyph == 0. * modules/indic/indic-ot.h modules/basic/basic-common.h: Treat LINE SEPARATOR as a zero-width character.
* Update for cairo API change. (pango_cairo_win32_font_get_metrics): Fix x/yOwen Taylor2005-05-121-2/+2
| | | | | | | | 2005-05-11 Owen Taylor <otaylor@redhat.com> * pango/pangocairo-win32font.c (pango_cairo_win32_font_install): Update for cairo API change. (pango_cairo_win32_font_get_metrics): Fix x/y typo.
* Update for Cairo API changes.Owen Taylor2005-05-073-18/+18
| | | | | | | | 2005-05-07 Owen Taylor <otaylor@redhat.com> * pango/pangocairo-fontmap.c pango/pangocairo-render.c examples/cairosimple.c pango/pangocairo-fcfont.c examples/cairoview.c: Update for Cairo API changes.
* Get the ascent/descent from Cairo to fix bugs in metrics computation withOwen Taylor2005-05-021-24/+7
| | | | | | | | 2005-04-29 Owen Taylor <otaylor@redhat.com> * pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_glyph_extents): Get the ascent/descent from Cairo to fix bugs in metrics computation with a transformation in effect.
* Correct parameters passed to MultiByteToWideChar(). Pass -1 as sourceTor Lillqvist2005-04-284-129/+262
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-04-28 Tor Lillqvist <tml@novell.com> * pango/pangocairo-win32font.c (pango_cairo_win32_font_get_font_face): Correct parameters passed to MultiByteToWideChar(). Pass -1 as source string length so that the target string gets zero-terminated. Size of target array is in number of WCHARs, not number of bytes. Add support to pangowin32 for TrueType fonts with coverage outside the BMP. Fix handling of surrogate pairs in the Uniscribe shaper. (#302238) * pango/pangowin32-private.h (PangoWin32Face): Rename the unicode_table field to cmap. Keep track of its format (4 or 12). (format_12_cmap): Add struct for a format 12 cmap. * pango/pangowin32.c: Corresponding changes. Rename internal functions a bit. (get_format_12_cmap): New function, reads a format 12 cmap. (font_get_cmap): Look for both format 12 (which is preferred) and format 4 cmaps. (pango_win32_font_get_glyph_index, pango_win32_font_calc_coverage): Handle also format 12 cmaps. * modules/basic/basic-win32.c: Handle surrogate pairs in wchar_t strings properly. (unichar_index): New function. Given a wchar_t string and an index into it, calculate the index of the corresponding Unicode character. Each surrogate pair in the wchar_t is just one Unicode character. (set_up_pango_log_clusters, itemize_shape_and_place): Use unichar_index() instead of direct index into wchar_t string.
* Rename LDADDS to libpango_ot_la_LIBADD to actually make libpango-ot.laTor Lillqvist2005-04-122-7/+7
| | | | | | | | | | | 2005-04-12 Tor Lillqvist <tml@novell.com> * pango/opentype/Makefile.am: Rename LDADDS to libpango_ot_la_LIBADD to actually make libpango-ot.la link with it. * pango/pangowin32.def: Rename get_scale_factor to get_metrics_factor here, too. (#300222, Ivan Wong)
* File Edit Options Buffers Tools HelpOwen Taylor2005-04-081-1/+1
| | | | | | | 2005-04-08 Owen Taylor <otaylor@redhat.com> * pango/pangocairo-font.c (_pango_cairo_font_install): Remove stray return. (#173046, Damien Carbery)
* Test for renamed cairo_win32_scaled_font_select_font().Owen Taylor2005-04-073-79/+50
| | | | | | | | | | | | 2005-04-07 Owen Taylor <otaylor@redhat.com> * configure.in: Test for renamed cairo_win32_scaled_font_select_font(). * pango/pangocairo-win32font.c: Fix various compilation errors. * pango/pangocairo-fcfont.c pango/pangocairo-win32font.c pango/pangocairo-fontmap.c: Use new matrix API.
* Update to new Cairo font API.Owen Taylor2005-04-078-108/+182
| | | | | | | | | | | 2005-04-07 Owen Taylor <otaylor@redhat.com> * pango/pangocairo-fcfont.c pango/pangocairo-win32font.c pango/pangocairo-render.c: Update to new Cairo font API. * pangpopangowin32.h pango/pangowin32-private.h pango/pangowin32.c pango/pangocairo-win32font.c modules/basic/basic-win32.c: Rename get_scale_factor() to get_metrics_factor() to match Cairo
* variable declaration on the start of the block, not C99 everywhere.Hans Breuer2005-04-032-6/+9
| | | | | | | | | | | 2005-04-04 Hans Breuer <hans@breuer.org> * pango/pangocairo-win32font.c(pango_cairor_win32_font_get_metrics) : variable declaration on the start of the block, not C99 everywhere. * examples/viewer-win32.c : updated to not so recent Pango api changes * pango/makefile.msc : pangocairo build win32 version, not freetype
* updated externalsHans Breuer2005-03-182-2/+4
| | | | | | | | 2005-03-18 Hans Breuer <hans@breuer.org> * pango/pango.def pango/pangocairo.def : updated externals (now really)
* updated externalsHans Breuer2005-03-181-2/+2
| | | | | | | | | 2005-03-18 Hans Breuer <hans@breuer.org> * pango/pango.def pango/pangocairo.def : updated externals * pango/pangowin32.c(pango_win32_render_transformed) : matrix elements xy and yx are needed the other way around for XFORM
* Set win32font->logfont. (How was this working at all?)Owen Taylor2005-03-181-0/+5
| | | | | | | 2005-03-17 Owen Taylor <otaylor@redhat.com> * pango/pangocairo-win32font.c (_pango_cairo_win32_font_new): Set win32font->logfont. (How was this working at all?)
* Include the effect of the CTM in the FC_PIXEL_SIZE we set in theOwen Taylor2005-03-155-39/+80
| | | | | | | | | | | | | | | | | | | | | 2005-03-15 Owen Taylor <otaylor@redhat.com> * pango/pangofc-fontmap.c: Include the effect of the CTM in the FC_PIXEL_SIZE we set in the FcPattern. (Fixes problems with getting the wrong font when drawing the same font at multiple scales. Reported by Keith Packard.) * pango/pangofc-fontmap.h pango/pangocairo-fcfontmap.c pango/pangocairo-fc.h pango/pangocairo-fontfont.c: Add the PangoFontDescription to create_font() ... we need it to get the right pixel size to combine with the CTM. * pango/pangofc-fontmap.c (pango_fc_fontmap_get_dpi): Extract out the logic for finding the DPI from the size-listing code. (pango_fc_font_map_get_render_key): Handle mix of absolute and not sizes correctly.
* const correctness for _pango_fribidi_prop_to_typeManish Singh2005-03-052-2/+2
| | | | | | | | | Sat Mar 5 13:51:04 2005 Manish Singh <yosh@gimp.org> * pango/mini-fribidi/fribidi_types.[ch]: const correctness for _pango_fribidi_prop_to_type * tools/Makefile.am: dist gen-script-table.pl and gen-color-table.pl
* Add mising filesOwen Taylor2005-03-051-0/+1521
| | | | | | | | | | | | | 2005-03-04 Owen Taylor <otaylor@redhat.com> Reduce non-shared data (#168899, inspired by patches from Tommi Komulainen and Ross Burton) * pango/pango-color.c pango/pango-color-table.h tools/gen-color-table.pl: Redo storage of colors to use offsets into a static string rather than embedded strings. (Inspired by a patch from Tommi Komulainen, #168899)
* Reduce non-shared data (#168899, inspired by patches from Tommi KomulainenOwen Taylor2005-03-057-796/+36
| | | | | | | | | | | | | | | | | | | | | | | | 2005-03-04 Owen Taylor <otaylor@redhat.com> Reduce non-shared data (#168899, inspired by patches from Tommi Komulainen and Ross Burton) * pango/pango-color.c pango/pango-color-table.h tools/gen-color-table.pl: Redo storage of colors to use offsets into a static string rather than embedded strings. (Inspired by a patch from Tommi Komulainen, #168899) * pango/break.c pango/fonts.c pango/pango-color.c pango/pango-layout.c pango/pango-markup.c pango/pango-script-lang-table.h pango/mini-fribidi/fribidi_types.c tools/gen-script-for-lang.c: Add const in various places * modules/arabic/arabic-fc.c modules/hebrew/hebrew-fc.c: modules/indic/{indic-fc.c,indic-ot-class-tables.c, indic-ot.h} modules/syriac/syriac-ot.c (syriac): Further addition of const.
* Add bug # to ChangeLogOwen Taylor2005-03-031-0/+1
|
* Call XftCharIndex() on the right font. (#163511)Owen Taylor2005-03-031-1/+2
| | | | | | | 2005-03-03 Owen Taylor <otaylor@redhat.com> * pango/pangoxft-render.c (pango_xft_renderer_draw_glyphs): Call XftCharIndex() on the right font. (#163511)
* For all binary searches, handle the case where the number of items is 0.Owen Taylor2005-03-032-24/+51
| | | | | | | | | | | | | | 2005-03-03 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxopen.c (Coverage_Index1, Coverage_Index2, Get_Class2): For all binary searches, handle the case where the number of items is 0. (#162977, Nick Lamb) * pango/opentype/ftxgdef.c (TT_GDEF_Build_ClassDefinition): Handle the case where glyph_count == 0 properly. Fix a problem with cleanups on memory allocation failure. (Get_New_Count, Add_Glyph_Property): Avoid reading off the end of the ClassRangeRecord array.
* For family names that add in numbers add a , to distinguish them fromOwen Taylor2005-03-021-7/+34
| | | | | | | | | 2005-03-02 Owen Taylor <otaylor@redhat.com> * pango/fonts.c (pango_font_description_from_string_: For family names that add in numbers add a , to distinguish them from family+size (#166540, debugging/testing by Manish Singh)
* Fix various typos in the docs (#163244, Morten Welinder)Owen Taylor2005-03-021-2/+2
| | | | | | | 2005-03-02 Owen Taylor <otaylor@redhat.com> * pango/pango-attributes.c (pango_attr_iterator_get_attrs): Fix various typos in the docs (#163244, Morten Welinder)
* Go back to using Xft-reported metrics for all non-transformed fonts.Owen Taylor2005-03-021-1/+1
| | | | | | | | | | | 2005-03-02 Owen Taylor <otaylor@redhat.com> * pango/pangoxft-font.c (pango_xft_font_get_glyph_extents): Go back to using Xft-reported metrics for all non-transformed fonts. Reporting non-integer glyph metrics for fonts where people have disabled hinting in their config causes various problems. (reported variously, including #167801, Adam Sampson)
* Don't break lines on LINE_SEPARATOR in single-paragraph mode. (#168589,Owen Taylor2005-03-011-1/+2
| | | | | | | | 2005-03-01 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (process_item): Don't break lines on LINE_SEPARATOR in single-paragraph mode. (#168589, Damon Chaplin)
* Fix a typo in the last commit (Manish Singh)Owen Taylor2005-03-011-1/+1
| | | | | | | 2005-03-01 Owen Taylor <otaylor@redhat.com> * pango/pangoxft-font.c: Fix a typo in the last commit (Manish Singh)
* Delete FC_SPACING value out of pattern before passing it to Xft, toOwen Taylor2005-03-011-1/+4
| | | | | | | | | 2005-03-01 Owen Taylor <otaylor@redhat.com> * pango/pangoxft-font.c (xft_font_get_font): Delete FC_SPACING value out of pattern before passing it to Xft, to prevent Xft clipping characters and trashing metrics. (#164879, Billy Biggs)
* Use the language from the context if %NULL is passed in for @language.Owen Taylor2005-03-011-2/+8
| | | | | | | | 2005-03-01 Owen Taylor <otaylor@redhat.com> * pango/pango-context.c (pango_context_get_metrics): Use the language from the context if %NULL is passed in for @language. (#163472)
* Build fixes from Andrew P. Lentvorski, Jr, #164655Owen Taylor2005-03-011-0/+5
| | | | | | | | | | | | | | 2005-03-01 Owen Taylor <otaylor@redhat.com> Build fixes from Andrew P. Lentvorski, Jr, #164655 * pango/pangoft2-render.c: Duplicate the FT_LOAD_TARGET_MONO/FT_LOAD_MONOCHROME back-compat define from pangoft2.c here * examples/Makefile.am (pango_xftview_LDADD): Add X_LIBS to pango_xftview_LDADD since some old versions of xft.pc didn't add -lX11.
* Use PKG_CHECK_MODULES not AM_PATH_GLIB_2_0 to avoid a problem where olderOwen Taylor2005-03-011-2/+3
| | | | | | | | | | | | 2005-03-01 Owen Taylor <otaylor@redhat.com> * configure.in: Use PKG_CHECK_MODULES not AM_PATH_GLIB_2_0 to avoid a problem where older verisons of AM_PATH_GLIB_2_0 silently ignored gmodule-no-export causing mysterious build failures. (#161786) * pango/Makefile.am (DISTCLEANFILES): Move some configure.in output files from CLEANFILES to DISTCLEANFILES.
* map get_font_map to the right function.Manish Singh2005-02-252-1/+2
| | | | | | | | | Fri Feb 25 12:14:24 2005 Manish Singh <yosh@gimp.org> * pango/pangofc-font.c (pango_fc_font_class_init): map get_font_map to the right function. * pango/pangox.c (pango_x_font_class_init): fill in get_font_map.
* PangoCairoFontMap for win32 fonts.Owen Taylor2005-02-2419-145/+827
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-02-24 Owen Taylor <otaylor@redhat.com> * pango/pangocairo-win32.h pango/pangocairo-win32font.c pango/pangocairo-win32fontmap.c pango/Makefile.am: PangoCairoFontMap for win32 fonts. * pango/pangocairo-fontmap.c: Use PangoCairoWin32FontMap when available. * pango/pangowin32.h pango/pangowin32-fontmap.h pango/pangowin32.c: Add virtual pango_win32_font_select_font() to prepare a DC for use with a PangoWin32Font, and to release, pango_win32_font_scale_font() to get logical unit => Pango units scale, pango_win32_font_done_font() to release resources. * pango/pangowin32-fontmap.[ch]: Add a find_font() virtual method to allow subclasses that change how PangoFont lookup and creation happens. * pango/pangowin32-fontmap.c: Move initialization into pango_win32_font_map_init() to facilitate derivation. * pango/pangowin2.c pango/pangowin32-fontmap.c pango/pangowin32-private.h: Move PangoWin32Font/PangoWin32FontMap definitions into pangowin32-private.h to allow derivation for PangoCairoWin32Font. * modules/basic/basic-win32.c: Use pango_win32_font_select_font() and friends. * modules/basic/basic-win32.c: Use g_utf8_to_utf16 instead of g_convert for simplicity and speed. * pango/fonts.c (pango_font_get_font_map) pango/pango-font.h pango/pangofc-font.c pango/pangowin32.c pango/pango.c pango/pango.def docs/pango-sections.txt: Add a virtual function to get the fontmap for a font. * pango/pangocairo-render.c: Use pango_font_get_font_map() rather than PangoFcFontMap hack. * pango/pango-types.h: Move the declaration of PangoFontMap here to avoid interactions between pango-font.h and pango-fontmap.h. * pango/pangocairo.h: Remove accidental include of pangofc-fontmap.h.
* Minor doc fixes. (#167922, #167924, Billy Biggs)Owen Taylor2005-02-212-2/+2
| | | | | | | | 005-02-21 Owen Taylor <otaylor@redhat.com> * pango/fonts.c (pango_font_get_glyph_extents): * pango/shape.c (pango_shape): Minor doc fixes. (#167922, #167924, Billy Biggs)
* Rename pango_cairo_show_glyphs() to pango_cairo_show_glyph_string(). AddOwen Taylor2005-02-072-43/+211
| | | | | | | | | | 2005-02-06 Owen Taylor <otaylor@redhat.com> * pango/pangocairo.h pango/pangocairo-render.c docs/pango-sections.txt: Rename pango_cairo_show_glyphs() to pango_cairo_show_glyph_string(). Add pango_cairo_{glyph_string,layout_line,layout}_path() * docs/Makefile.am (INCLUDES): Add CAIRO_CFLAGS.
* updated to build with the new Cairo dependency added pangocairo.def toHans Breuer2005-02-066-4/+42
| | | | | | | | 2005-02-06 Hans Breuer <hans@breuer.org> * pango/makefile.msc pango/*.def pango/pangocairo.def : updated to build with the new Cairo dependency * pango/Makefile.am : added pangocairo.def to EXTRA_DIST
* spell _pango_cairo_fc_get_render_key correctly.Manish Singh2005-02-042-6/+8
| | | | | | | | | Thu Feb 3 19:00:17 2005 Manish Singh <yosh@gimp.org> * pango/pangocairo-fc.h: spell _pango_cairo_fc_get_render_key correctly. * pango/pangocairo-fcfont.c: #include cairo-ft.h
* Fix unpaired lock/unlock_face().Owen Taylor2005-02-031-3/+3
| | | | | | | 2005-02-03 Owen Taylor <otaylor@redhat.com> * pango/pangofc-font.c (pango_fc_font_real_get_glyph): Fix unpaired lock/unlock_face().
* Bump to 1.9.0.Owen Taylor2005-02-031-2/+9
| | | | | | | | 2005-02-03 Owen Taylor <otaylor@redhat.com> * configure.in: Bump to 1.9.0. * pango/pangofc-fontmap.h: Document PangoFcFontMap.create_font()
* Open the file with mode "wb", include cairo-png.h.Owen Taylor2005-02-039-359/+273
| | | | | | | | | | | | | | | | | | | | | | | | | 2005-02-03 Owen Taylor <otaylor@redhat.com> * examples/cairosimple.c: Open the file with mode "wb", include cairo-png.h. * examples/xftview.c examples/cairoview.c: Set WM_NORMAL_HINTS to avoid triggering a metacity bug. * examples/cairoview.c: Include cairo-xlib.h. * configure.in: Add checks for the Win32 Cairo backend. (not committing the code yet). * examples/Makefile.am pango/Makefile.am: add CAIRO_CFLAGS. * pango/pangocairo-fc.h pango/pangocairo-fcfont.c pango/pangocairo-fcfontmap.c pango/pangofc-fontmap.[ch]: Rework Cairo/Fontconfig backend to use the current Cairo API. Make some PangoFcFontMap changes to enable that. * pango/pango/pangocairo-private.h pango/pangocairo-render.c: Update for cairo_font_t changes.
* Add missing pango_render_part_get_type. (#165287, Cedric Gustin)Tor Lillqvist2005-01-291-0/+1
| | | | | | | 2005-01-29 Tor Lillqvist <tml@novell.com> * pango/pango.def: Add missing pango_render_part_get_type. (#165287, Cedric Gustin)
* Add a missing entry point.Tor Lillqvist2005-01-251-0/+1
| | | | | | 2005-01-25 Tor Lillqvist <tml@novell.com> * pango/pango.def: Add a missing entry point.