1. 20 Aug, 2021 1 commit
  2. 04 Jul, 2019 1 commit
    • Matthias Clasen's avatar
      Header cleanup · d21ea13a
      Matthias Clasen authored
      Abolish the PANGO_ENABLE_BACKEND and PANGO_ENABLE_ENGINE
      defines. All backend-only apis are moved into private
      headers, all apis that were engine-only are marked as
      deprecated, since engines are.
      d21ea13a
  3. 29 Jun, 2016 1 commit
  4. 10 May, 2015 1 commit
  5. 13 Apr, 2015 1 commit
  6. 04 Apr, 2015 1 commit
  7. 27 Sep, 2013 1 commit
  8. 28 Aug, 2012 1 commit
  9. 16 Jun, 2012 1 commit
  10. 09 Jun, 2011 1 commit
  11. 12 Jun, 2007 1 commit
    • Behdad Esfahbod's avatar
      Add G_GNUC_CONST and G_GNUC_PURE annotations. · 4b9a95cf
      Behdad Esfahbod authored
      2007-06-11  Behdad Esfahbod  <behdad@gnome.org>
      
              * pango/pango-attributes.h:
              * pango/pango-font.h:
              * pango/pango-glyph.h:
              * pango/pango-gravity.h:
              * pango/pango-language.h:
              * pango/pango-layout.h:
              * pango/pango-matrix.h:
              * pango/pango-ot-private.h:
              * pango/pango-ot.h:
              * pango/pango-renderer.h:
              * pango/pango-script.h:
              * pango/pango-tabs.h:
              * pango/pango-utils.h:
              * pango/pangoatsui-private.h:
              * pango/pangocairo-atsui.h:
              * pango/pangocairo-atsuifont.h:
              * pango/pangocairo-fc.h:
              * pango/pangocairo-private.h:
              * pango/pangocairo-win32.h:
              * pango/pangocairo.h:
              * pango/pangofc-decoder.h:
              * pango/pangofc-font.h:
              * pango/pangofc-fontmap.h:
              * pango/pangoft2-private.h:
              * pango/pangoft2.h:
              * pango/pangowin32-private.h:
              * pango/pangox-private.h:
              * pango/pangoxft-render.h:
              * pango/pangoxft.h:
              Add G_GNUC_CONST and G_GNUC_PURE annotations.
      
      
      svn path=/trunk/; revision=2345
      4b9a95cf
  12. 16 Jan, 2007 2 commits
    • Behdad Esfahbod's avatar
      *.c, *.h: Replace preceding sequences of 8 spaces with tabs. · a0225fbf
      Behdad Esfahbod authored
      2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
      
              *.c, *.h: Replace preceding sequences of 8 spaces with tabs.
      
      
      svn path=/trunk/; revision=2165
      a0225fbf
    • Behdad Esfahbod's avatar
      New attribute types PANGO_ATTR_GRAVITY and PANGO_ATTR_GRAVITY_HINT. New · 56e7902a
      Behdad Esfahbod authored
      2007-01-16  Behdad Esfahbod  <behdad@gnome.org>
      
              * pango/pango-attributes.h:
              * pango/pango-attributes.c:
              New attribute types PANGO_ATTR_GRAVITY and PANGO_ATTR_GRAVITY_HINT.
              New public functions:
      
                      pango_attr_gravity_new()
                      pango_attr_gravity_hint_new()
      
              * pango/pango-context.c (update_attr_iterator),
              (itemize_state_init), (itemize_state_add_character),
              (get_shaper_and_font), (itemize_state_update_for_new_run):
              Handle gravity and gravity_hint attributes.
      
              * pango/pango-utils.h:
              * pango/pango-utils.c:
              New public function:
      
                      pango_parse_enum()
      
              * pango/pango-markup.c (span_parse_func): Parse gravity and
              gravity_hint attributes for <span>.  Optimize a bit.
      
              * pango/pango-markup.c (parse_absolute_size), (attr_strcmp),
              (span_parse_int), (span_parse_boolean), (span_parse_color),
              (span_parse_enum), (span_parse_func): Use pango_scan_int(),
              pango_color_parse(), and pango_parse_enum().  Also, ignore '-' and
              '_' differences when matching attribute names for <span>.
      
              * examples/renderdemo.c (parse_enum), (parse_ellipsis),
              (parse_gravity), (parse_gravity_hint), (parse_hinting),
              (parse_wrap): Use a generic parse_enum() that uses pango_parse_enum().
      
              * modules/basic/basic-fc.c (basic_engine_shape):
              * pango/pangofc-fontmap.c (pango_fc_make_pattern):
              Use PANGO_GRAVITY_IS_VERTICAL().
      
              * pango/pango.def:
              * docs/pango-sections.txt:
              * docs/tmpl/text-attributes.sgml:
              * docs/tmpl/utils.sgml:
              Update.
      
      
      svn path=/trunk/; revision=2145
      56e7902a
  13. 04 Jan, 2007 1 commit
    • Behdad Esfahbod's avatar
      Part of Bug 332266 – gdk_draw_layout fails for coordinates >= 2^21 · 143def0d
      Behdad Esfahbod authored
      2007-01-04  Behdad Esfahbod  <behdad@gnome.org>
      
              Part of Bug 332266 – gdk_draw_layout fails for coordinates >= 2^21
      
              * pango/pango-types.h:
              * pango/pango-matrix.c: New public API:
                      pango_matrix_transform_distance()
                      pango_matrix_transform_point()
                      pango_matrix_transform_rectangle()
                      pango_matrix_transform_pixel_rectangle()
      
              * pango/pango-utils.h:
              * pango/pango-utils.c: New public API:
                      pango_units_from_double()
                      pango_units_to_double()
                      pango_extents_to_pixels()
      
              * pango/pango-layout.c (pango_layout_get_pixel_extents),
              (pango_layout_line_get_pixel_extents): Use pango_extents_to_pixels().
      
              * pango/pangocairo-fcfont.c:
              (pango_cairo_fc_font_glyph_extents_cache_init),
              (compute_glyph_extents): Use pango_units_from_double().
      
              * examples/renderdemo.c (do_output): Use
              pango_matrix_transform_pixel_rectangle();
      
              * pango/pango.def:
              * docs/pango-sections.txt:
              * docs/tmpl/glyphs.sgml: Update.
      
      
      svn path=/trunk/; revision=2126
      143def0d
  14. 07 Dec, 2006 1 commit
    • Behdad Esfahbod's avatar
      New generated public header file pango-features.h. Currently contains the · d6956a1a
      Behdad Esfahbod authored
      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.
      d6956a1a
  15. 16 Aug, 2006 1 commit
    • Behdad Esfahbod's avatar
      Render block progression and line direction arrows, and a base gravity · bb26941a
      Behdad Esfahbod authored
      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.
      bb26941a
  16. 31 Mar, 2006 2 commits
    • Behdad Esfahbod's avatar
      Hook up pango-utils.h into the documentation, as we are installing it · d2c62958
      Behdad Esfahbod authored
      2006-03-30  Behdad Esfahbod  <behdad@gnome.org>
      
              Hook up pango-utils.h into the documentation, as we are installing
              it anyway.  Move some internal stuff to pango-impl-utils.h and make
              source files include that instead.
      d2c62958
    • Tor Lillqvist's avatar
      Fix blurred underlines on Win32 (#332656): · a2d9f1a9
      Tor Lillqvist authored
      2006-03-30  Tor Lillqvist  <tml@novell.com>
      
      	Fix blurred underlines on Win32 (#332656):
      
      	* pango/pango-utils.c (pango_quantize_line_geometry):
      	New public function. Used to be the static quantize_position() in
      	pangofc-font.c
      
      	* pango/pango-utils.h: Declare it.
      
      	* pango/pango.def: Here, too.
      
      	* pango/pangofc-font.c (quantize_position): Remove.
      	(get_face_metrics): Use pango_quantize_line_geometry() instead.
      
      	* pango/pangocairo-win32font.c (create_metrics_for_context): Call
      	pango_quantize_line_geometry() for underline and strikethrough
      	geometries.
      a2d9f1a9
  17. 05 Feb, 2006 1 commit
  18. 14 Jan, 2006 1 commit
  19. 05 Jan, 2006 1 commit
    • Behdad Esfahbod's avatar
      pango/Makefile.am, pango/fonts.c, pango/glyphstring.c, · 59e692ee
      Behdad Esfahbod authored
      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)
      59e692ee
  20. 03 Nov, 2005 1 commit
    • Behdad Esfahbod's avatar
      Updated to FriBidi version 0.10.7 patched to handle UTF-8 directly. Moved · 18042570
      Behdad Esfahbod authored
      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)
      18042570
  21. 23 Jul, 2005 1 commit
    • Behdad Esfahbod's avatar
      New function added. · d5142f02
      Behdad Esfahbod authored
      2005-07-23  Behdad Esfahbod  <pango@behdad.org>
      
              * pango/pango-utils.c, pango/pango-utils.h (pango_is_zerowidth): New
              function added.
      
              * modules/basic/basic-common.h, modules/basic/basic-fc.c,
              modules/basic/basic-win32.c, modules/basic/basic-x.c,
              modules/hangul/hangul-fc.c, modules/arabic/arabic-fc.c,
              modules/indic/indic-fc.c, modules/indic/indic-ot.h,
              modules/syriac/syriac-fc.c:  Use the new pango_is_zerowidth function.
              (#306639, Behnam Esfahbod)
      d5142f02
  22. 27 Feb, 2004 1 commit
    • Owen Taylor's avatar
      Add some new enum and values and utilities for supporting automatically · 58a45b6a
      Owen Taylor authored
      Fri Feb 27 09:30:10 2004  Owen Taylor  <otaylor@redhat.com>
      
              Add some new enum and values and utilities for supporting
              automatically determined base direction. (#70451, based
              on changes by Dov Grobgeld)
      
              * pango/pango-types.h docs/tmpl/main.sgml: Add
              PANGO_DIRECTION_WEAK_RTL/LTR, extend the docs for
              PangoDirection.
      
              * pango/pango-types.h pango/pango-utils.h: Move
              pango_get_mirror_char() to pango-types.h.
      
              * pango/mini-fribidi/fribidi.c (pango_log2vis_get_embedding_levels):
              Handle new values of PangoDirection, handle
              PANGO_DIRECTION_TTB_LTR/RTL as aliases for PANGO_DIRECTION_RTL/LTR.
      
              * pango/mini-fribidi/fribidi.c pango/pango-types.h: Add
              pango_unichar_direction().
      
              * pango/pango-utils.c pango/pango-types.h: Add
              pango_find_base_dir()
      58a45b6a
  23. 18 Nov, 2001 1 commit
    • Alexander Larsson's avatar
      Check for LEX and YACC. This will be made optional later, with the build · 07665344
      Alexander Larsson authored
      2001-11-17  Alexander Larsson  <alla@lysator.liu.se>
      
      	* configure.in:
      	Check for LEX and YACC. This will be made optional later,
      	with the build sources checked in to cvs.
      	Generate pango/mini-xft/Makefile
      
      	* modules/basic/basic-ft2.c:
      	Use the new pangoft2 API.
      
      	* pango/Makefile.am:
      	Build mini-xft.
      	Add new files.
      
      	* pango/pango-context.[ch]:
      	Support only one fontmap per context.
      	Use pango_font_map_load_fontset() and PangoFontset instead
      	of internal fontset.
      
      	* pango/pango-fontmap.[ch]:
      	New virtual function pango_font_map_load_fontset() and
      	default implementation that uses pango_font_map_load_font().
      
      	* pango/pango-utils.[ch] (pango_lookup_aliases):
      	Utility function for looking up aliases. This can be
      	used by backend that has no backend specific aliases.
      
      	* pango/pangoft2-fontcache.c:
      	Removed file.
      
      	* pango/pangoft2-fontmap.c:
      	* pango/pangoft2-private.h:
      	* pango/pangoft2.c:
      	* pango/pangoft2.h:
      	Major rewrite. Doesn't handle fontsets. Uses mini-xft so that
      	it will always match the PangoXft backend. Simplified the
      	public API.
      
      	* pango/pangowin32.c:
      	* pango/pangox.c:
      	pango_context_add_font_map -> pango_context_set_font_map
      
      	* pango/pangoxft-font.c:
      	* pango/pangoxft-fontmap.c:
      	* pango/pangoxft-private.h:
      	New code to handle fontsets.
      
      	* pango/mini-xft/*:
      	Mini version of libXft from XFree86 in order to have
      	the pangoFT2 and pangXft backends have same config files and
      	generate the same fonts.
      07665344
  24. 18 Oct, 2001 1 commit
    • Owen Taylor's avatar
      Remove the rest of the silly pango file-reading code from · 9aed2d15
      Owen Taylor authored
      Thu Oct 18 15:48:14 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* pango/pango-utils.h: Remove the rest of the
      	silly pango file-reading code from PANGO_ENABLE_BACKEND,
      	so I can use it in gtkimmodule.c. It's nothing
      	that should be in Pango longterm, but it's not
      	enough code to worry about removing before Pango-2.0.
      	(#61602, Sven Neumann)
      9aed2d15
  25. 18 Sep, 2001 1 commit
    • Owen Taylor's avatar
      Up to 0.19. · a49e070d
      Owen Taylor authored
      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.
      a49e070d
  26. 26 Jun, 2001 1 commit
    • Owen Taylor's avatar
      Couple of bug fixes for the last change. · 9c411767
      Owen Taylor authored
      Tue Jun 26 15:11:30 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* pango/pango-context.c (font_set_get_font)
      	  pango/pango-context.c (add_engines): Couple of
      	bug fixes for the last change.
      
      	* configure.in: Abort out when AM_PATH_GLIB fails.
      9c411767
  27. 14 Jun, 2001 1 commit
    • Owen Taylor's avatar
      Add a new PangoLanguage type to represent language tags; these can · 5ee19fca
      Owen Taylor authored
      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.
      5ee19fca
  28. 16 Apr, 2001 1 commit
    • Owen Taylor's avatar
      Small updates · 09ff7235
      Owen Taylor authored
      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.
      09ff7235
  29. 21 Feb, 2001 1 commit
    • Havoc Pennington's avatar
      Patch from Soeren Sandmann · 51df27fa
      Havoc Pennington authored
      2001-02-20  Havoc Pennington  <hp@pobox.com>
      
              Patch from Soeren Sandmann
      
      	* pango/pangox-fontcache.c (pango_x_font_cache_load): make xlfd
      	arg const
      
      	* pango/pango-utils.c (pango_get_sysconf_subdirectory):
      	G_CONST_RETURN
      	(pango_get_lib_subdirectory): G_CONST_RETURN
      51df27fa
  30. 14 Nov, 2000 1 commit
    • Owen Taylor's avatar
      Fix low underline code to deal with run_ink == NULL. · e6e7df5c
      Owen Taylor authored
      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.
      e6e7df5c
  31. 12 Nov, 2000 1 commit
    • Owen Taylor's avatar
      Include a stripped-down version of fribidi to avoid the extra dependency. · f726b8d4
      Owen Taylor authored
      Sun Nov 12 16:07:06 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* configure.in pango/pango-utils.[ch] pango/Makefile.am
      	pango/mini-fribidi/*: Include a stripped-down version of fribidi
      	to avoid the extra dependency. No fribidi symbols are
      	exported so conflicts with the real fribidi should not
      	happen. Library can optionally be compiled with the
      	real libfribidi.
      
      	* pango/pango-utils.[ch]: Wrappers for
      	fribidi_ functions when compiling with fribiid.
      
      	* modules/basic/basic-ft2.c modules/basic/basic-win32.c
      	modules/basic/basic.c modules/thai/thai.c pango/Makefile.am
      	pango/itemize.c pango/pango-context.c pango/pangoft2.c
      	pango/pangowin32.c pango/pangox.c: Use pango_ versions of fribidi
      	functions.
      f726b8d4
  32. 01 Nov, 2000 1 commit
    • Havoc Pennington's avatar
      Add a new attribute for scaling a font; also required adding · b00a32cc
      Havoc Pennington authored
      2000-11-01  Havoc Pennington  <hp@pobox.com>
      
      * pango/pango-attributes.c (pango_attr_scale_new): Add a new
      attribute for scaling a font; also required adding PangoAttrFloat.
      (pango_attr_iterator_get_font): Add PANGO_ATTR_SCALE handling.
      
      * pango/pango-utils.c (pango_parse_stretch): Take a plain string
      not a GString
      (pango_parse_weight): ditto
      (pango_parse_variant): ditto
      (pango_parse_style): ditto
      
      * pango/pangox-fontmap.c (pango_x_font_map_read_alias_file): pass
      GString::str instead of the GString itself to pango_parse_*
      
      * pango/pangoft2-fontmap.c (pango_ft2_insert_face): ditto
      
      * pango/pangowin32-fontmap.c
      (pango_win32_font_map_read_alias_file): ditto
      
      * pango/pango-layout.c (get_tab_pos): adapt to new pango_itemize()
      signature
      (pango_layout_check_lines): Raise attr list copy/creation out of
      the loop over paragraphs. Adapt to pango_itemize() changes.
      
      * pango/pango-context.c (pango_itemize): pass in a starting
      index and a cached iterator
      (add_engines): Easy optimization, pass in
      n_chars instead of recomputing it. Also, pass on the start
      index and cached iterator.
      
      * docs/pango-sections.txt: Add new stuff
      docs/pango_markup.sgml: Docs on markup format
      
      * pango/pango-layout.c (pango_layout_get_attributes): New function
      to retrieve the AttrList from a layout
      (pango_layout_set_markup): Set layout from markup
      (pango_layout_set_markup_with_accel): Set layout from markup
      including accelerator parsing.
      
      * pango/pango-attributes.h (pango_parse_markup): New function to
      convert a tag string to an attribute list
      
      * pango/pango-markup.c (pango_parse_markup): implement
      
      * docs/Makefile.am, docs/pango-docs.sgml, docs/pango-sections.txt,
      docs/pango_markup.sgml: oooooh, documentation for the above patch!
      
      * docs/tmpl/pango-unused.sgml: Remove from CVS; just causes
      problems, and was full of checked-in conflict markers.
      b00a32cc
  33. 11 Sep, 2000 1 commit
    • Owen Taylor's avatar
      Fix bug where wrong attribute list was unreferenced. · b19ed06a
      Owen Taylor authored
      Sun Sep 10 03:01:53 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* pango/pango-layout.c (pango_layout_set_attributes): Fix
      	bug where wrong attribute list was unreferenced.
      
      	* pango/pango-attributes.[ch]: Add function
      	pango_attr_list_splice() to splice contents of one
      	attribute list into another attribute list.
      
      	* pango/pango-utils.h: Add include of pango-font.h since
      	it now depends on declarations from there.
      b19ed06a
  34. 20 Aug, 2000 1 commit
    • Tor Lillqvist's avatar
      Add parameter telling whether to print warning or not if string isn't · 79546feb
      Tor Lillqvist authored
      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}
      79546feb
  35. 16 Jul, 2000 1 commit
    • Tor Lillqvist's avatar
      pango/pango-utils.h pango/pango-utils.c pango/pangox-fontmap.c Move the · ca5b24d1
      Tor Lillqvist authored
      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}.
      ca5b24d1
  36. 15 Jul, 2000 1 commit
    • Tor Lillqvist's avatar
      pango/pangowin32.h pango/pangowin32-private.h pango/pangowin32-fontcache.c · 932fe1e3
      Tor Lillqvist authored
      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().
      932fe1e3
  37. 01 Jul, 2000 1 commit
  38. 08 Jun, 2000 1 commit