summaryrefslogtreecommitdiff
path: root/pango/Makefile.am
Commit message (Collapse)AuthorAgeFilesLines
* New public API:Behdad Esfahbod2007-05-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-05-10 Behdad Esfahbod <behdad@gnome.org> * pango/Makefile.am: * pango/pango-ot.h: * pango/pango-ot-tag.c (pango_ot_tag_from_script), (pango_ot_tag_to_script), (lang_compare_first_component), (pango_ot_tag_from_language), (pango_ot_tag_to_language): New public API: PANGO_OT_DEFAULT_SCRIPT pango_ot_tag_from_script() pango_ot_tag_to_script() pango_ot_tag_from_language() pango_ot_tag_to_language() * tests/Makefile.am: * tests/test-ot-tags.c: Test case for new functions. * pango/pangoft2.def: * docs/pango-docs.sgml: * docs/pango-sections.txt: * docs/tmpl/main.sgml: * docs/tmpl/opentype.sgml: Updated. svn path=/trunk/; revision=2274
* Move PangoLanguage stuff into pango-language.[ch]Behdad Esfahbod2007-05-081-0/+2
| | | | | | | | | | | | | | | 2007-05-08 Behdad Esfahbod <behdad@gnome.org> * pango/Makefile.am: * pango/pango-script.h: * pango/pango-types.h: * pango/pango-utils.c: * pango/pango-language.c: * pango/pango-language.h: Move PangoLanguage stuff into pango-language.[ch] svn path=/trunk/; revision=2268
* Rip non-fontmap stuff from pangocairo-fontmap.c into pangocairo-context.c.Behdad Esfahbod2007-05-041-0/+1
| | | | | | | | | | | | | 2007-05-04 Behdad Esfahbod <behdad@gnome.org> * pango/Makefile.am: * pango/pangocairo-context.c: * pango/pangocairo-fontmap.c: Rip non-fontmap stuff from pangocairo-fontmap.c into pangocairo-context.c. svn path=/trunk/; revision=2260
* Bug 409212 – Missing link flag prevents build with "-z defs" ld flagsBehdad Esfahbod2007-02-181-0/+1
| | | | | | | | | | | | 2007-02-18 Behdad Esfahbod <behdad@gnome.org> Bug 409212 – Missing link flag prevents build with "-z defs" ld flags Patch from Loïc Minier * pango/Makefile.am: Add $(X_LIBS) to pangoxft_LDADD. svn path=/trunk/; revision=2199
* Use pangocairo.def only on Win32, not Cygwin. (#402373, "paul")Tor Lillqvist2007-01-311-0/+2
| | | | | | | | | | 2007-01-31 Tor Lillqvist <tml@novell.com> * pango/Makefile.am: Use pangocairo.def only on Win32, not Cygwin. (#402373, "paul") svn path=/trunk/; revision=2192
* Bug 323173 – Add layout of mixed direction text for vertical layoutBehdad Esfahbod2007-01-161-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-01-15 Behdad Esfahbod <behdad@gnome.org> Bug 323173 – Add layout of mixed direction text for vertical layout * pango/pango-gravity.h: * pango/pango-gravity.c: Moved gravity stuff here. New public API: PangoGravityHint pango_gravity_get_for_matrix() pango_gravity_get_for_script() * pango/pango-context.h: * pango/pango-context.c (pango_context_init), (update_resolved_gravity), (itemize_state_update_for_new_run): Support gravity hint. New public API: pango_context_set_gravity_hint() pango_context_get_gravity_hint() * pango/pango-utils.c: * pango/pango-matrix.c: * pango/pango-matrix.h: * pango/pango-types.h: Moved gravity and matrix stuff into its own header. pango-types.h includes both pango-matrix.h and pango-gravity.h * pango/pango.h: Include new headers. * pango/pango.def: * pango/Makefile.am: Update. * docs/pango-docs.sgml: * docs/pango-sections.txt: * docs/tmpl/glyphs.sgml: * docs/tmpl/main.sgml: * docs/tmpl/vertical.sgml: Add a section for Vertical Text. * examples/renderdemo.c (do_output), (parse_gravity_hint), (parse_options): Support gravity hint. * examples/test-mixed.txt: New test, mixed Latin, Arabic, Chinese text. svn path=/trunk/; revision=2144
* Bug 390877 – Don't feed pango-features.h to glib-mkenums Patch fromBehdad Esfahbod2007-01-031-1/+1
| | | | | | | | | | | | 2007-01-03 Behdad Esfahbod <behdad@gnome.org> Bug 390877 – Don't feed pango-features.h to glib-mkenums Patch from Yevgen Muntyan * pango/Makefile.am: Move pango-features.h to pangoinclude_HEADERS. svn path=/trunk/; revision=2124
* New generated public header file pango-features.h. Currently contains theBehdad Esfahbod2006-12-071-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-12-06 Behdad Esfahbod <behdad@gnome.org> * configure.in: * pango/Makefile.am: New generated public header file pango-features.h. Currently contains the version information. In the future, can be expanded to define which backends have been enabled, etc. * pango/pango.def: * pango/pango-utils.h: * pango/pango-utils.c: New public macros and functions: PANGO_VERSION_ENCODE(), PANGO_VERSION_MAJOR, PANGO_VERSION_MINOR, PANGO_VERSION_MICRO, PANGO_VERSION, PANGO_VERSION_STRING, PANGO_VERSION_CHECK(), pango_version(), pango_version_string(), pango_version_check(). * docs/pango-docs.sgml: * docs/pango-sections.txt: * docs/tmpl/pango-version.sgml: Docs for new symbols, in a new section. * examples/renderdemo.c (show_version): If run-time Pango lib version is different than the compile-time one, show that one too. * pango/pango.h: #include <pango-utils.h> as well as almost all other public pango-*.h headers (though, the other ones were already included indirectly). The only public pango-*.h header pango.h shouldn't include are pango-ot.h (which is really misnamed) and pango-modules.h (that should not be needed by 99.99% users anyway). * docs/Makefile.am: * docs/check.docs: Test to check that all symbols are documented and properly hooked into documentation tree. * pango/pango.rc.in: * pango/pangoft2.rc.in: * pango/pangowin32.rc.in: Update, reflecting some internal symbol changes. * pango/check.defs: Improve.
* Bug 361938 – Can't include *-lang modules (./configureBehdad Esfahbod2006-10-131-19/+21
| | | | | | | | | | | | | | | 2006-10-13 Behdad Esfahbod <behdad@gnome.org> Bug 361938 – Can't include *-lang modules (./configure --with-included-modules fails) * configure.in: * modules/Makefile.am: * pango/.cvsignore: * pango/Makefile.am: * pango/modules.c (init_modules): * pango/modules.h: Make included language engines work.
* pango/Makefile.am examples/Makefile.am pango/testfonts.c RenameTor Lillqvist2006-08-231-6/+2
| | | | | | | | | | 2006-08-23 Tor Lillqvist <tml@novell.com> * pango/Makefile.am * examples/Makefile.am * pango/testfonts.c * examples/pangowin32tobmp.c: Rename pango/testfonts.c to examples/pangowin32tobmp.c. (#104151)
* Render block progression and line direction arrows, and a base gravityBehdad Esfahbod2006-08-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-08-16 Behdad Esfahbod <behdad@gnome.org> * examples/viewer-pangocairo.c (render_callback): Render block progression and line direction arrows, and a base gravity roof-top. * pango/pango-matrix.c (pango_matrix_to_gravity): New function. * pango/pango-utils.c (pango_gravity_to_rotation): New function. * pango/pangocairo-fcfont.c (_pango_cairo_fc_font_new): Use pango_gravity_to_rotation(). * pango/pango-utils.h: * pango/pango-types.h: Reorder a bit. * examples/Makefile.am: * examples/test-chinese.txt: New test text for Chinese. * pango/check.defs: New script that checks that all the exported symbols are listed in the respective .def file. (only checks the libraries actually built. No win32 for example.) * pango/Makefile.am: Hook check.defs as a 'make check' test. * pango/pango.def: * pango/pangoft2.def: * pango/pangocairo.def: Update. * docs/tmpl/glyphs.sgml: * docs/tmpl/main.sgml: * docs/pango-sections.txt: Update.
* New file. Move all pango_matrix_* stuff into a separate file.Behdad Esfahbod2006-07-071-0/+1
| | | | | | | | 2006-07-07 Behdad Esfahbod <behdad@gnome.org> * pango/pango-matrix.c: New file. * pango/pango-utils.c: Move all pango_matrix_* stuff into a separate file.
* Just call gnome-autogen.sh. The old autogen.sh had poor version checkingBehdad Esfahbod2006-06-211-4/+4
| | | | | | | | | | | | | | | | 2006-06-21 Behdad Esfahbod <behdad@gnome.org> * autogen.sh: Just call gnome-autogen.sh. The old autogen.sh had poor version checking and was borking with libtool 2.x. * Makefile.am: * configure.in: * pango-zip.sh.in: * pango/Makefile.am: * pango/pango.rc.in: * pango/pangoft2.rc.in: * pango/pangowin32.rc.in: Rename LT_* variables such that autoconf doesn't err on "possibly undefined macros".
* Bug 342079 – pangoatsui-private.h missing from releaseBehdad Esfahbod2006-05-171-0/+1
| | | | | | | | | 2006-05-17 Behdad Esfahbod <behdad@gnome.org> Bug 342079 – pangoatsui-private.h missing from release * pango/Makefile.am (libpangocairo_1_0_la_SOURCES): Include pangoatsui-private.h.
* Add the necessary frameworks to make this build with -no-undefined.Richard Hult2006-05-151-0/+1
| | | | | | | 2006-05-15 Richard Hult <richard@imendio.com> * pango/Makefile.am (libpangocairo_1_0_la_LDFLAGS): Add the necessary frameworks to make this build with -no-undefined.
* Convert pango/opentype to the new project called HarfBuzz.Behdad Esfahbod2006-03-311-2/+2
| | | | | | | | | | 2006-03-31 Behdad Esfahbod <behdad@gnome.org> Convert pango/opentype to the new project called HarfBuzz. * pango/opentype/*: Restructured. * pango/pango-ot-*: Updated to use HarfBuzz symbol names.
* AC_DEFINE the module version, such that pango-querymodules gets rebuiltBehdad Esfahbod2006-02-031-1/+0
| | | | | | | | | | 2006-02-03 Behdad Esfahbod <behdad@gnome.org> * configure.in: AC_DEFINE the module version, such that pango-querymodules gets rebuilt after module version update. * pango/Makefile.am: Do not set -DMODULE_VERSION.
* pango/pangocairo-private.h, pango/pangocairo-font.c, Hint hexbox. AlsoBehdad Esfahbod2006-02-011-1/+2
| | | | | | | | 2006-01-31 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-private.h, pango/pangocairo-font.c, * pango/pangocairo-render.c: Hint hexbox. Also draw a singl-row hexbox for very small sizes.
* Removed.Behdad Esfahbod2006-01-281-3/+8
| | | | | | | | | | 2006-01-28 Behdad Esfahbod <behdad@gnome.org> * pango/opentype/pango-ot-*: Removed. * pango/pango-ot-*: Added. * pango/Makefile.am, pango/opentype/Makefile.am: Adjusted.
* Fix more ATSUI stuff in build infrastructure. Sigh... (bug #328632)Behdad Esfahbod2006-01-261-6/+10
| | | | | | | 2006-01-26 Behdad Esfahbod <behdad@gnome.org> * pango/modules.h, pango/Makefile.am: Fix more ATSUI stuff in build infrastructure. Sigh... (bug #328632)
* If major.minor of required and available glib versions are the same, addBehdad Esfahbod2006-01-251-1/+0
| | | | | | | | | 2006-01-25 Behdad Esfahbod <behdad@gnome.org> * configure.in: If major.minor of required and available glib versions are the same, add -DG_DISABLE_DEPRECATED to GLIB_CFLAGS. (bug #328617) * */Makefile.am: Remove hardcoded -DG_DISABLE_DEPRECATED.
* Make tests/examples do use generated pango.modules. (bug #328291)Behdad Esfahbod2006-01-231-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-23 Behdad Esfahbod <behdad@gnome.org> Make tests/examples do use generated pango.modules. (bug #328291) * examples/pangorc, tests/pangorc: Removed. Moved to modules/. * examples/pangox.aliases: Removed. Moved to pango/. * examples/Makefile.am, tests/Makefile.am: Remove pango.modules creation stuff, copy pangorc from $(srcdir)/../modules/pangorc insteadd. * examples/renderdemo.c: Add --pangorc option, default to ./pangorc. Setenv PANGO_RC_FILE to whatever pangorc file decided. * tests/*.c: Setenv PANGO_RC_FILE to ./pangorc. * pango/pangox.aliases: Added. * pango/Makefile.am: Install pangox.aliases. * modules/pangorc: Added. * modules/Makefile.am: Create pango.modules. Added pangorc. * modules/.cvsignore, examples/.cvsignore, tests/.cvsignore: Updated.
* Move GLIB_CFLAGS before external libraries' CFLAGS. Some formattingBehdad Esfahbod2006-01-161-16/+47
| | | | | | | 2006-01-16 Behdad Esfahbod <behdad@gnome.org> * pango/Makefile.am: Move GLIB_CFLAGS before external libraries' CFLAGS. Some formatting changes too.
* Adjust the order of *_CFLAGS to the same order known to work. (Fixes bugBehdad Esfahbod2006-01-161-2/+2
| | | | | | | | 2006-01-16 Behdad Esfahbod <behdad@gnome.org> * docs/Makefile.am, examples/Makefile.am, pango/Makefile.am, tests/Makefile.am: Adjust the order of *_CFLAGS to the same order known to work. (Fixes bug #325588)
* pango/Makefile.am, pango/fonts.c, pango/glyphstring.c,Behdad Esfahbod2006-01-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-05 Behdad Esfahbod <behdad@gnome.org> * pango/Makefile.am, * pango/fonts.c, * pango/glyphstring.c, * pango/pango-attributes.c, * pango/pango-color.c, * pango/pango-impl-utils.h, * pango/pango-item.c, * pango/pango-layout.c, * pango/pango-tabs.c, * pango/pango-utils.c, * pango/pango-utils.h, * pango/pangoatsui-fontmap.c, * pango/pangocairo-font.c, * pango/pangocairo-fontmap.c, * pango/pangofc-fontmap.c, * pango/pangowin32-fontmap.c, * pango/pangox-fontmap.c, * pango/pangox.c, * pango/opentype/pango-ot-info.c, * pango/opentype/pango-ot-ruleset.c: Intern strings to avoid unnecessary strdups in the type system. (bug #325832, Matthias Clasen)
* === Released 1.11.1 ===Behdad Esfahbod2005-12-131-1/+4
| | | | | | | | | | | | | | 2005-12-12 Behdad Esfahbod <behdad@gnome.org> * === Released 1.11.1 === * configure.in: Version 1.11.1 * NEWS: Updated. 2005-12-12 Behdad Esfahbod <behdad@gnome.org> * pango/Makefile.am: Handle module-defs-atsui.c.
* Link libpangoxft with -lm. (#318210)Behdad Esfahbod2005-11-231-1/+1
| | | | | | 2005-11-23 Behdad Esfahbod <behdad@gnome.org> * pango/Makefile.am: Link libpangoxft with -lm. (#318210)
* Add checks for ATSUI.Anders Carlsson2005-11-221-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-11-21 Anders Carlsson <andersca@imendio.com> * configure.in: Add checks for ATSUI. * examples/Makefile.am: Only build pango-cairoview if freetype is detected. * modules/basic/Makefile.am: Add basic ATSUI module. * pango/Makefile.am: Add ATSUI files for cairo backend. * pango/pangocairo-fontmap.c: (pango_cairo_font_map_new): Support creating ATSUI font maps here. * pango/pangoatsui-fontmap.c: * pango/pangoatsui-private.h: * pango/pangoatsui.c: * pango/pangoatsui.h: * pango/pangocairo-atsui.h: * pango/pangocairo-atsuifont.c: * pango/pangocairo-atsuifont.h: * pango/pangocairo-atsuifontmap.c: Add.
* Updates from #320666:Behdad Esfahbod2005-11-141-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | 2005-11-14 Behdad Esfahbod <behdad@gnome.org> Updates from #320666: * pango/Makefile.am: Remove pango-easy-scripts-table.h. * pango/pango-easy-scripts-table.h: Removed. The "easy" table goes into pango-scripts-table.h too. * pango/pango-script-table.h: Include "easy" table. * pango/pango-script.c: Change gunichar->script last_index caching mechanism. The caching is simply done by making int mid in the bsearch static. * tools/Makefile.am: Remove gen-easy-scripts-table.c. * tools/gen-easy-scripts-table.c: Removed. The "easy" table is generated in gen-scripts-table.pl too. * tools/gen-script-table.h: Generate "easy" table.
* Fixes bug #320666:Federico Mena Quintero2005-11-081-31/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-11-07 Federico Mena Quintero <federico@ximian.com> Fixes bug #320666: Instead of doing a bsearch() for every gunichar to map it to a PangoScript, use a precomputed table for the first 8192 code points. Also, remember the last script that we computed on each invocation; this will also help CJK and the other scripts above U+2000. This table also holds information on whether the characters in it are paired characters. We can use this to avoid doing the expensive get_pair_index() call most of the time. Many thanks to Matthias Clasen for his suggestions for this patch. * tools/gen-easy-scripts-table.c: New program to generate pango_easy_scripts_table. * tools/Makefile.am: Build gen-easy-scripts-table. * pango/pango-easy-scripts-table.h: New file with a mapping of the first 8192 Unicode characters to their corresponding scripts. The table also says whether each character has a paired char or not. * pango/Makefile.am (libpango_1_0_la_SOURCES): Add pango-easy-scripts-table.h. * pango/pango-script-table.h: Remove everything below U+2000, and add a note to that effect. * pango/pango-script.c (pango_script_for_unichar_with_last_index): New function. This is the old pango_script_for_unichar(), but it lets the caller keep around the computed index in pango_script_table. This works under the assumption that a character is likely to be in the same script block as the preceding character in a string. (pango_script_for_unichar): First, do a quick check against the pango_easy_scripts_table. Then, do the expensive check with pango_script_for_unichar_with_last_index(). (pango_script_iter_next): If the character is within the easy script range, find out if it is a paired character by using PANGO_PAIRED_CHAR_FLAG. (struct _PangoScriptIter): Add a last_index_for_script_lookup field. We use this to maintain the last-lookup index from pango_script_for_unichar_with_last_index(). (pango_script_iter_next): If the character is not within the easy script range, use pango_script_for_unichar_with_last_index(), and store the index in the last_index_for_script_lookup field of the PangoScriptIter.
* Updated to FriBidi version 0.10.7 patched to handle UTF-8 directly. MovedBehdad Esfahbod2005-11-031-3/+8
| | | | | | | | | | | 2005-11-03 Behdad Esfahbod <behdad@gnome.org> * docs/tmpl/main.sgml, pango/Makefile.am, pango/pango-context.c (itemize_state_init), pango/pango-utils.c, pango/pango-utils.h, pango/pangox.c (itemize_string_foreach), pango/mini-fribidi/*: Updated to FriBidi version 0.10.7 patched to handle UTF-8 directly. Moved pango_log2vis_get_embedding_levels to pango-utils.c instead of mini-fribidi. (#317192, review by Matthias Clasen)
* Move the calculation of dpi and size earlier. Use the size variable instadTor Lillqvist2005-09-221-1/+1
| | | | | | | | | | | | | | | | | 2005-09-22 Tor Lillqvist <tml@novell.com> * pango/pangocairo-win32font.c (_pango_cairo_win32_font_new): Move the calculation of dpi and size earlier. Use the size variable instad of isize when looking for a matching cached font. Isize was supposed to be the same as size anyway. (Actually it was the same only when LOGPIXELSY equalled 96 (which often is the default value), see below.) * pango/pangocairo-win32fontmap.c (pango_cairo_win32_font_map_init): Set dpi to the LOGPIXELSY value instead of hardcoding 96. * pango/Makefile.am (libpangocairo_1_0_la_LIBADD): Need WIN32_LIBS now.
* Use pangocairo.def when linking libpangocairo on Windows, instead ofTor Lillqvist2005-08-241-0/+3
| | | | | | | | | | | 2005-08-25 Tor Lillqvist <tml@novell.com> * pango/Makefile.am: Use pangocairo.def when linking libpangocairo on Windows, instead of relying on GNU ld auto-exporting all public symbols. * pango/pangocairo.def: Add missing entries. (#314420, Kazuki Iwamoto)
* Add pangocairo files. Get the DLLs from "bin" unconditionally, that'sTor Lillqvist2005-08-051-2/+9
| | | | | | | | | | | 2005-08-05 Tor Lillqvist <tml@novell.com> * pango-zip.sh.in: Add pangocairo files. Get the DLLs from "bin" unconditionally, that's where libtool installs them since a long time. * pango/Makefile.am (install-def-files, uninstall-def-files): Install/uninstall also pangocairo .def and .lib files.
* Look for pango.def, pangoft2.def and pangowin32.def files in the sourceJ. Ali Harlow2005-07-291-3/+3
| | | | | | | 2005-07-29 J. Ali Harlow <ali@juiblex.co.uk> * pango/Makefile.am: Look for pango.def, pangoft2.def and pangowin32.def files in the source directory. Fixes #311971.
* Use -export-symbols-regex to control symbol exports, including notOwen Taylor2005-07-221-10/+6
| | | | | | | | | | | | | | | | | 2005-07-22 Owen Taylor <otaylor@redhat.com> * pango/Makefile.a configure.in: Use -export-symbols-regex to control symbol exports, including not exporting the symbols from opentype/. * modules/*/Makefile.am: Control symbol exports here as well, simplify using AC_SUBST() of MODULE_LIBTOOL_OPTIONS from configure.in. * pango/pangox-fontmap.c (engine_shape_covers): Cut-and-paste engine_shape_covers to avoid using a symbol from libpango. * pango/pango-utils.c: Make accidentally exported pango_aliases_ht static.
* Call AC_CANONICAL_HOST before looking at $host. Check for windres onTor Lillqvist2005-07-091-27/+26
| | | | | | | | | | | | | | | | | | | | | | 2005-07-09 Tor Lillqvist <tml@novell.com> * configure.in: Call AC_CANONICAL_HOST before looking at $host. Check for windres on Win32. * pango/Makefile.am: Don't use the scripts in GLib's build/win32 to compile the rc files into resource object files. (This means we lose the build number increment magic, but I doubt it was that useful anyway.) Instead use windres directly. To pass a normal .o file produced by windres through libtool, which wants .lo files, pass it directly to the linker using a -Wl option. Libtool installs/uninstalls the import libraries, no need to do it ourselves. Do install/uninstall the .def files, though. * pango/pango.rc.in * pango/pangoft2.rc.in * pango/pangowin32.rc.in: Correspondingly, use 0 instead of BUILDNUMBER.
* #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.
* 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.
* PangoCairoFontMap for win32 fonts.Owen Taylor2005-02-241-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* updated to build with the new Cairo dependency added pangocairo.def toHans Breuer2005-02-061-0/+1
| | | | | | | | 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
* Open the file with mode "wb", include cairo-png.h.Owen Taylor2005-02-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 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 checks for CairoOwen Taylor2005-01-091-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sat Jan 8 16:46:37 2005 Owen Taylor <otaylor@redhat.com> * configure.in: Add checks for Cairo * pango/Makefile.am: Add libpangocairo. * pango/pangocairo-font.c pango/pangocairo-fontmap.c pango/pangocairo.h pango/pangocairo-private.h pango/pangocairo-fcfont.c pango/pangocairo-fcfontmap.c pango/pangocairo-fc.h: Start of a Cairo/FreeType backend. * pango/pangofc-fontmap.[ch]: Add a "get_render_key" virtual function to allow subclasses to specialize the details of how caching works. Add a default implementation that's a little more sophisticated than what was there before. * pango/pangoft2-private.h pangofc-font.c pangoft2.c: Move default implementations of has_char(), get_glyph() to the base class. * pango/pangofc-private.h pango/pangoft2-private.h: Move PANGO_UNITS_26_6 and friends to pango/pangofc-private.h. * examples/renderdemo.[ch] examples/pangoft2topgm.c examples/xftview.c: Allow passing in a custom function to transform drawing. * examples/Makefile.am examples/cairoview.c: Add a Cairo/Xlib example program. * examples/cairosimple.c: Simple Cairo example with output to a PNG. * pango/pango-layout.c (pango_layout_line_get_extents): Fix bug where line ink rect was always including 0, 0.
* Make the .la files depend on the corresponding .def files.Tor Lillqvist2004-12-171-3/+3
| | | | | | | | | 2004-12-17 Tor Lillqvist <tml@iki.fi> * pango/Makefile.am: Make the .la files depend on the corresponding .def files. * pango/pango.def: Add a couple of missing functions.
* Add $(libm), needed for no-undefined platforms like AIX. (#160773, VincentOwen Taylor2004-12-141-1/+1
| | | | | | | | Tue Dec 14 18:32:46 2004 Owen Taylor <otaylor@redhat.com> * pango/Makefile.am (libpangoft2_1_0_la_LIBADD): Add $(libm), needed for no-undefined platforms like AIX. (#160773, Vincent Berger)
* Set G_LOG_DOMAIN.Owen Taylor2004-11-221-0/+1
| | | | | | | Mon Nov 22 18:30:14 2004 Owen Taylor <otaylor@redhat.com> * pango/opentype/Makefile.am pango/Makefile.am modules/*/Makefile.am: Set G_LOG_DOMAIN.
* Up version to 1.7.0.Owen Taylor2004-09-241-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Sep 24 12:59:22 2004 Owen Taylor <otaylor@redhat.com> * configure.in: Up version to 1.7.0. * pango/pango-renderer.[ch] pango/pango.h pango/Makefile.am: Add PangoRenderer, a base class that is subclassed to produce rendering drivers for different backends and purposes. * pango/pangoft2-private.h pango/pangoft2-render.c pango/pangoft2.c: Move rendering into pangoft2-render.c, use PangoRenderer. * pango/pangoft2-fontmap.c pango/pangoft2-private.h: Add _pango_ft2_font_map_get_renderer() to retrieve a singleton fontmap for the fontmap. * pango/pangoxft-render.[ch] pango/pangoxft.c pango/Makefile.am: Make Xft rendering use PangoRenderer, add publically visible, subclassable PangoXftRenderer. * pango/pangoxft-fontmap.c pango/pangoxft-private.h: Add _pango_xft_font_map_get_renderer() to retrieve a singleton fontmap for the fontmap. * examples/xftview.c examples/Makefile.am: Add a test program using the Xft backend. * docs/*: Update minimally for PangoRenderer.
* Add pango_ot_buffer_set_zero_width_marks, again.Tor Lillqvist2004-08-261-5/+6
| | | | | | | | | | | | 2004-08-26 Tor Lillqvist <tml@iki.fi> * pango/pangoft2.def: Add pango_ot_buffer_set_zero_width_marks, again. * pango/Makefile.am: Don't use -lm on Windows. (pangoinclude_HEADERS): Put them on one line, automake 1.8 (at least on Windows) otherwise drops the backslashes but still outputs separate lines.
* Add PangoEllipsizeMode, pango_layout_set_ellipsize(), implement. (#59071)Owen Taylor2004-07-141-0/+3
| | | | | | | | | | | | | | | | | | Wed Jul 14 17:47:38 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.[ch] pango/ellipsize.c pango/Makefile.am: Add PangoEllipsizeMode, pango_layout_set_ellipsize(), implement. (#59071) * pango/pango-layout-private.h pango/pango-layout.c: Move PangoLayout structure into a separate header file. * pango/pango-glyph-item.[ch]: Add pango_glyph_item_free(). * pango/pango-glyph-item-private.h pango/pango-glyph-item.c: Internally export the PangoGlyphItemIter functionality. * examples/renderdemo.[ch]: Add --ellipsize option.
* Reverse order of pangoft2/pangoxft in Makefile; apparently automakeOwen Taylor2004-07-131-17/+17
| | | | | | | | Tue Jul 13 10:07:44 2004 Owen Taylor <otaylor@redhat.com> * pango/Makefile.am: Reverse order of pangoft2/pangoxft in Makefile; apparently automake doesn't figure out the correct installation order. (#146472)