summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Switch over to GLib/GTK+ style library versioning. Update version numbersOwen Taylor2002-03-051-2/+10
| | | | | | | | Tue Mar 5 11:00:20 2002 Owen Taylor <otaylor@redhat.com> * configure.in **/Makefile.am *.pc.in: Switch over to GLib/GTK+ style library versioning. Update version numbers to 1.0.0.
* *** empty log message ***Changwoo Ryu2002-03-041-0/+12
|
* Write examples/pango.modules in terms of .la files rather than directOwen Taylor2002-03-031-1/+1
| | | | | | | | | | | | | | | | Sat Mar 2 21:57:55 2002 Owen Taylor <otaylor@redhat.com> * examples/Makefile.am (pango.modules): Write examples/pango.modules in terms of .la files rather than direct shared objects to avoid having to know soname extension. * pango/querymodules.c (main): Use G_MODULE_SUFFIX or .la to compare with filenames when querying modules, rather than hardcoded .so/.la. * configure.in (USE_LA_MODULES): On aix, load .la files since we can't guess the soname extension.
* added makefile.msc to EXTRA_DISTHans Breuer2002-02-151-0/+1
| | | | | | | 2002-02-15 Hans Breuer <hans@breuer.org> * examples/makefile.am pango/makefile.am : added makefile.msc to EXTRA_DIST
* Accept also outfile name on command line, fopen it separately then. NeededTor Lillqvist2002-02-072-12/+30
| | | | | | | | | | | | | 2002-02-07 Tor Lillqvist <tml@iki.fi> * examples/pangoft2topgm.c (main): Accept also outfile name on command line, fopen it separately then. Needed on Windows where stdout is in text mode. * modules/arabic/Makefile.am * modules/hebrew/Makefile.am: Use -no-undefined on Windows, otherwise libtool won't produce DLLs, and there will be no such to install
* shut up CVSSven Neumann2002-02-031-1/+2
|
* Remove this file; pangofttopgm is the test case for the FT2 backend now.Owen Taylor2002-01-254-796/+34
| | | | | | | | | | | | | Wed Jan 23 16:49:24 2002 Owen Taylor <otaylor@redhat.com> * examples/viewer-ft2.c: Remove this file; pangofttopgm is the test case for the FT2 backend now. * examples/Makefile.am: Don't dist moc_viewer-qt.cc. * examples/Makefile.am: Build pangofttopgm if we have FT2. * examples/pangoft2topgm.c (main): Warning fixes.
* Added pangoft2topgm.c to EXTRA_DISTDov Grobgeld2002-01-171-0/+1
|
* An example of using the ft2 moduleDov Grobgeld2002-01-172-0/+546
|
* Compile with -DG_DISABLE_DEPRECATED. See #52790.Sebastian Wilhelmi2001-12-131-1/+1
| | | | | | | | | | | | 2001-12-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * examples/Makefile.am, modules/arabic/Makefile.am, modules/basic/Makefile.am, modules/hangul/Makefile.am, modules/hebrew/Makefile.am, modules/indic/Makefile.am, modules/tamil/Makefile.am, modules/thai/Makefile.am, pango/Makefile.am, pango/mini-fribidi/Makefile.am, pango/opentype/Makefile.am, tests/Makefile.am: Compile with -DG_DISABLE_DEPRECATED. See #52790.
* Include qpainter.h - apparently needed for Qt 3. (Patch from DennisOwen Taylor2001-11-291-0/+1
| | | | | | | Thu Nov 29 11:40:51 2001 Owen Taylor <otaylor@redhat.com> * examples/viewer-qt.cc: Include qpainter.h - apparently needed for Qt 3. (Patch from Dennis Dementiev)
* Version 0.20PANGO_0_20Owen Taylor2001-09-251-1/+4
| | | | | | | | | | | | | | | | | | | Tue Sep 25 11:54:03 2001 Owen Taylor <otaylor@redhat.com> * configure.in: Version 0.20 * NEWS: Updated * configure.in (GLIB_REQUIRED_VERSION): Require GLib 1.3.9 * examples/Makefile.am (EXTRA_DIST): Add the viewer-qt in case someone (say Tim) makes dist without qt installed. (reported by Tony Graham) * examples/Makefile.am (pango.modules): Don't use grep -q (reported by Tony Graham) * docs/pango-sections.txt: Fix small typo.
* Up to 0.19.Owen Taylor2001-09-182-46/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Sep 18 15:47:08 2001 Owen Taylor <otaylor@redhat.com> * configure.in (PANGO_MINOR_VERSION): Up to 0.19. * pango/pango-font.h pango/pango-fontmap.[ch] pango/fonts.c pango/pangoxft-fontmap.c pango/pangoft-fontmap.c pango/pango-context.[ch] pango/pangox-fontmap.c: Add new PangoFontFace and PangoFontFamily object types, and change the font listing API to list faces and families, instead of face names and font descriptions. * pango/pango-font.h pango/fonts.c: Make PangoFontDescription an opaque heap-allocated structure, add accessors and convenience functions. * pango/pango-font.h pango/pango-private.h: Make PangoFontMetrics heap allocated, protect the structure definition with #ifdef PANGO_ENABLE_BACKEND, and add getters for the fields. * pango/pango-attributes.[ch] ( pango_attr_iterator_get_font): instead of providing a base font description and one to fill in, provide a single font description to modify based on the attributes. * pango/pango-attributes.[ch]: Fix PangoAttrFontDesc to have a PangoFontDescription by reference, not by value. * pango/pango-utils.[ch]: make pango_parse_style() and friends take pointers to individual enumerations instead of to a PangoFontDescription structure. * pango/*.c: Fix for the PangoFontDescription and PangoFontMetrics changes. * pango/pango-{break,engine,indic,ot,xft}.h pango/Makefile.am pango/opentype/Makefile.am: Protect portions with PANGO_ENABLE_ENGINE to shrink the public API. * modules/*/Makefile.am: -DPANGO_ENABLE_ENGINE. * pango/{pangox.h,pangox-private.h} modules/basic/basic-x.c: Move pango_x_font_get_unknown_glyph() into public header since it is used from modules. * pango/pango-{context,font,fontmap,modules.utils}.h pango/Makefile.am: Protect portions with PANGO_ENABLE_BACKEND to shrink the public API. * pango/*.h: Use G_BEGIN/END_DECLS * examples/viewer-qt.[cc,h]: Fix for changes to font listing API, PangoFontDescription. * pango/pango-indic.h modules/indic/*: Since we install this header fix it up to Pango conventions, namespece ZERO_WIDTH_JOINER, ZERO_WIDTH_NON_JOINER. * docs/pango-sections.txt: Updated.
* Require GLib-1.3.7Owen Taylor2001-06-291-1/+1
| | | | | | | | | | Thu Jun 28 21:49:30 2001 Owen Taylor <otaylor@redhat.com> * configure.in (GLIB_REQUIRED_VERSION): Require GLib-1.3.7 * pango/pangoft2-fontmap.c pango/pangowin32-fontmap.c pango/pangox-fontmap.c pango/pangoxft-fontmap.c: Fix args to g_type_init().
* Add a new PangoLanguage type to represent language tags; these canOwen Taylor2001-06-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sat Jun 9 17:36:09 2001 Owen Taylor <otaylor@redhat.com> * pango/pango-types.h pango/pango-utils.c: Add a new PangoLanguage type to represent language tags; these can efficiently be compared and don't need to be copied. Also add pango_language_matches() to match a language tag against a pattern. * pango/pango-item.[ch] pango/pango-layout.c: Move extra_attrs from PangoItem to PangoAnalysis. Add a language tag field to PangoAnalysis. (#55894) * pango/pango-attributes.[ch] (pango_attr_iterator_get_font): Return the language tag as well. * pango/pango-attributes.[ch]: Rename PangoAttrLang to PangoAttrLanguage, and make it hold a PangoLanguage. * pango/pango-context.[ch]: Rename pango_context_{get,set}_lang() to pango_context_{get,set}_language(). * **.[ch]: Adapt to PangoLanguage and s/lang/language/ changes. * modules/basic/basic-x.c modules/basic/tables-big.i: Add support for ordering character sets differently for different language tags. * pango/itemize.c: Remove old, unused file. * pango/pango-context.c (pango_itemize): Reduce number of mallocs by allocating one array of PangoAnalysis instead of many arrays.
* Require libtool 1.4 when build out of CVS.Owen Taylor2001-05-161-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | Tue May 1 16:03:48 2001 Owen Taylor <otaylor@redhat.com> * autogen.sh (libtool_version): Require libtool 1.4 when build out of CVS. * **/Makefile.am: Add inter-library dependencies, especially for the modules. Many cleanups to the module makefiles. * configure.in modules/indic/Makefile.am: Remove INCLUDE_ANY_INDIC conditional which doesn't seem to have any point and was definitely suspect as done. * modules/tamil/tamil-xft.c (MODULE_ENTRY): Fix prefix to be _pango_tamil instead of _pango_basic. * Makefile.am: Build modules/ after pango/ so we can make the modules depend on libpango/libpangox. * examples/Makefile.am: Remove spurious rule to rebuild makefile.mingw.
* Update for 0.16PANGO_0_16Owen Taylor2001-05-041-1/+1
| | | | | | | | | | | | | | | Fri May 4 11:07:04 2001 Owen Taylor <otaylor@redhat.com> * NEWS: Update for 0.16 * docs/pango-sections.txt: Update. * configure.in (PANGO_MINOR_VERSION): 0.16 Wed May 2 11:57:45 2001 Owen Taylor <otaylor@redhat.com> * examples/Makefile.am (QT_LIBS): Remove space that was confusing libtool.
* Remove warning when using fallback shaping.Owen Taylor2001-04-162-12/+13
| | | | | | | | | | | | | | | | | | | | | | Mon Apr 16 19:20:12 2001 Owen Taylor <otaylor@redhat.com> * modules/tamil/tamil-x.c: Remove warning when using fallback shaping. Mon Apr 16 19:14:00 2001 Owen Taylor <otaylor@redhat.com> [ Patches from Vikram Subramanian to update Tamil shapers ] * configure.in modules/tamil/tamil-xft.c modules/tamil/Makefile.am: Xft/TT based Tamil rendering engine. Uses glyphs in the private-use-area instead of proper OpenType tables. * examples/HELLO.utf8: Add Tamil line * examples/pangox.aliases: Add tamil fonts * modules/tamil/tadefs.h modules/tamil/tamil-x.c: Update to use PANGO_LIGATURE_HACK ligatures from BDF files instead of a fixed encoding.
* Small updatesOwen Taylor2001-04-161-1/+1
| | | | | | | | | | | | Mon Apr 16 18:12:06 2001 Owen Taylor <otaylor@redhat.com> * README: Small updates * examples/HELLO.utf8: Insert a RLM on the Yiddish line to correct for fixes to the bidi algorithm. * pango/mini-fribidi/*: Update to CVS fribidi which has various bug fixes.
* Add the mystic g_type_init ((GTypeDebugFlags) 0);.Owen Taylor2001-04-021-0/+2
| | | | | | | Mon Apr 2 12:01:03 2001 Owen Taylor <otaylor@redhat.com> * examples/viewer-qt.cc (main): Add the mystic g_type_init ((GTypeDebugFlags) 0);.
* Makefile.am configure.in modules/*/Makefile.am make it compile without XSven Neumann2001-03-151-0/+2
| | | | | | | | | 2001-03-15 Sven Neumann <sven@gimp.org> * Makefile.am * configure.in * modules/*/Makefile.am * pango/Makefile.am: make it compile without X headers
* added _pango_included_win32_modules[] to include modules with plain win32Hans Breuer2001-02-191-0/+65
| | | | | | | | | | | | | | 2001-02-19 Hans Breuer <hans@breuer.org> * pango/modules.h, pango/pangowin32.c (pango_win32_get_context) : added _pango_included_win32_modules[] to include modules with plain win32 build as well. * pango/pango.def : added new exported functions * pango/pangowin32-fontmap.c : add unspecified fonts for Monospace, Sans and Serif to avoid crashes if no alias file is provided * pango/*/makefile.msc : new files to build on windoze with msvc
* add assertion that shaper != NULL to catch engine problems fasterHavoc Pennington2000-12-141-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-12-14 Havoc Pennington <hp@redhat.com> * pango/fonts.c (pango_font_find_shaper): add assertion that shaper != NULL to catch engine problems faster * pango/Makefile.am (libpangox_la_SOURCES): modules.[hc] and module-defs.c have to go in libpangox for now since the modules use the X stuff, and static linkage won't let you play games here * examples/Makefile.am (pango_viewer_LDADD): fix order of link * modules/indic/pango-indic-script.h (pango_indic_get_char): make this a macro, so it doesn't collide between modules * modules/*/Makefile.am: Fix to work if the module isn't included * examples/Makefile.am: don't query modules if we didn't build any * modules/indic/gurmukhi.c (MODULE_ENTRY): fix prefix * modules/indic/bengali.c (MODULE_ENTRY): fix prefix * modules/indic/gujarati.c (MODULE_ENTRY): fix prefix * modules/indic/devanagari.c (MODULE_ENTRY): fix prefix * modules/indic/myanmar.c (MODULE_ENTRY): uniquely prefix the functions * modules/Makefile.am (MODULES): handle case where there are no modules to query * configure.in: Fix up include_modules stuff to work with Indic * pango/glyphstring.c (pango_glyph_string_set_size): Just g_error() if the glyph string exceeds maximum integer size, instead of mysteriously crashing later.
* Add a tab into to Yiddish line to force correct segmentation around theOwen Taylor2000-12-111-1/+1
| | | | | | | Mon Dec 11 15:20:24 2000 Owen Taylor <otaylor@redhat.com> * examples/HELLO.utf8: Add a tab into to Yiddish line to force correct segmentation around the parentheses.
* Use g_file_test().Tor Lillqvist2000-11-301-2/+2
| | | | | | | | | | 2000-12-01 Tor Lillqvist <tml@iki.fi> * pango/pango-utils.c (pango_get_sysconf_subdirectory): Use g_file_test(). * examples/viewer-win32.c (main): Disable double buffering on the layout widget only when building with GTK+ 1.3.2 or newer.
* Define PANGO_VERSION.Tor Lillqvist2000-11-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-11-30 Tor Lillqvist <tml@iki.fi> * pango/makefile.mingw.in (DEFINES): Define PANGO_VERSION. Changes by Hans Breuer: * pango/pango-layout.c (shape_tab): Add a FIXME comment. * pango/pango-markup.c (compare_xcolor_entries): Use g_strcasecmp. * pango/pango-utils.c (pango_get_sysconf_subdirectory): Use second fallback location if there is no pango subdir in the Windows directory. * pango/pangowin32-fontmap.c (pango_win32_font_entry_get_coverage): Check if fopen succeeded. * pango/pangowin32-private.h (DEBUGGING): Turn off. * pango/pangowin32.c (pango_win32_unicode_classify): We can in fact get out of the loop. Return invalid value in that case. (subfont_has_glyph): Improve performance a bit. * pango/querymodules.c: Small change for MSVC build. * modules/basic/basic-win32.c (basic_engine_get_coverage): Performance improvement. * examples/viewer-win32.c (main): Disable double buffering on the layout widget.
* Add README.win32.Tor Lillqvist2000-11-262-0/+19
| | | | | | | | | | 2000-11-20 Tor Lillqvist <tml@iki.fi> * Makefile.am (EXTRA_DIST): Add README.win32. * examples/pangoft2.aliases: Add this file to CVS. * examples/Makefile.am (EXTRA_DIST): Add it here.
* Released 0.13PANGO_0_13Owen Taylor2000-11-172-1/+5
| | | | | | | | | | | | | | | | | | | | | | | Fri Nov 17 16:12:34 2000 Owen Taylor <otaylor@redhat.com> * Released 0.13 * NEWS: Updates for 0.13 Fri Nov 17 16:04:19 2000 Owen Taylor <otaylor@redhat.com> * tools/Makefile.am (EXTRA_DIST): Add maps/tis-620 * Makefile.am (EXTRA_DIST): Added TODO.xml * pango/Makefile.am (EXTRA_DIST): Add .def files for Win32. * examples/Makefile.am (EXTRA_DIST): Add a couple of missing files. * docs/Makefile.am (dist-hook): Add back accidentally removed rule to distribute TEXT/*.
* Fix low underline code to deal with run_ink == NULL.Owen Taylor2000-11-141-58/+204
| | | | | | | | | | | | | | | | | Tue Nov 14 11:10:24 2000 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (pango_layout_run_get_extents): Fix low underline code to deal with run_ink == NULL. * pango/pango-utils.c (pango_read_line): Return number of lines read to allow decent parse errors line numbers. * pango/pangox-fontmap.c (pango_x_font_map_read_alias_file): Fix line number count. * examples/pangox.aliases: Include extra international fonts for all styles, not just roman, reindent so it looks halfway legible.
* Add italic/bold variantsHavoc Pennington2000-11-131-0/+11
| | | | | | 2000-11-13 Havoc Pennington <hp@redhat.com> * examples/pangox.aliases: Add italic/bold variants
* Remove UNICODE_LIBS UNICODE_CFLAGSHavoc Pennington2000-11-131-2/+2
| | | | | | | | | | | | 2000-11-12 Havoc Pennington <hp@pobox.com> * pango-config.in: Remove UNICODE_LIBS UNICODE_CFLAGS * modules/thai/Makefile.am (pango_thai_la_LIBADD): ditto * modules/basic/Makefile.am: ditto * pango/Makefile.am: ditto
* Added a fallback Korean font which comes with X.Robert Brady2000-11-131-3/+7
| | | | (-daewoo-mincho-medium-r-normal--*-*-*-*-*-*-ksc5601.1987-0)
* Shiny new Indic shapers!Robert Brady2000-11-082-8/+36
|
* pango/pango.def Add new entry points.Tor Lillqvist2000-10-031-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-10-03 Tor Lillqvist <tml@iki.fi> * pango/pango.def * pango/pangoft2.def: Add new entry points. * pango/pango-coverage.c (pango_coverage_set): Remove unnecessary loop calling memset() with same parameters 64 times ;-) * pango/makefile.mingw.in (PANGO_OBJS): Add pango-tabs.o. Some small changes that have been laying around on my disk. The Win32 and FT2 backends aren't "production quality" yet. For speedup, need to cache at least the coverage info. * pango/pangoft2.c (pango_ft2_get_coverage): New function. * modules/basic/basic-win32.c: Use "BasicScriptEngineLangWin32" to be unique. * modules/basic/basic-ft2.c: Add comments explaining what Unicode ranges the table entries covers. Use "BasicScriptEngineLangFT2" to be unique. (basic_engine_get_coverage): Test calling pango_ft2_get_coverage(). (basic_engine_ft2_new): Set corect engine type. Not that this apparently is used for anything, the X11 basic shaper module also sets its type as TYPE_LANG. * examples/viewer-ft2.c (split_paragraphs): Just end the string upon encountering an invalid character. Don't return.
* revert accidentally committed change to pangox.aliasesOwen Taylor2000-08-311-2/+0
|
* Add /usr/lib/qt-2.2.0 to the list.Owen Taylor2000-08-311-1/+3
| | | | | | | | | | | | | | | | Wed Aug 30 21:42:42 2000 Owen Taylor <otaylor@redhat.com> * configure.in (QTDIR): Add /usr/lib/qt-2.2.0 to the list. * modules/basic/tables-big.i: Updated using fixed make-table.sh. Added koi8-r and iso8859-1 * modules/basic/tables-small.i: Add note noting non-maintainence. * tools/make-table.sh: Fix for mapping tables with 3 columns provided by KUSANO Takayuki.
* Handle also ft_pixel_mode_mono glyphs.Tor Lillqvist2000-08-203-4/+4
| | | | | | | | | | | | | | | 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-202-16/+20
| | | | | | | | | 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.
* New file.Tor Lillqvist2000-08-201-24/+46
| | | | | | | | | | | 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-205-39/+803
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 hardcoded path to my home directory! Allow specifying the file onOwen Taylor2000-07-312-6/+18
| | | | | | | | | | | 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.
* Add some more fonts. Document where to get the fonts.Tor Lillqvist2000-07-201-4/+42
| | | | | | | 2000-07-20 Tor Lillqvist <tml@iki.fi> * examples/pangowin32.aliases: Add some more fonts. Document where to get the fonts.
* Add Tahoma and Angsana New, these common fonts have Thai characters.Tor Lillqvist2000-07-181-2/+2
| | | | | | | | | | | | | | | 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.
* Add the pangowin32 sources.Tor Lillqvist2000-07-182-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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-35/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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}.
* pango/pangowin32.h pango/pangowin32-private.h pango/pangowin32-fontcache.cTor Lillqvist2000-07-153-0/+771
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1/+3
| | | | * examples/pangox.aliases: Add clealyu fonts
* A bunch of simple functions for reading from files, manipulating stringsOwen Taylor2000-06-305-10/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Remove tests for libunicodeOwen Taylor2000-06-213-17/+14
| | | | | | | | | | | | 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-2/+2
| | | | | | | | | | | | | | 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