summaryrefslogtreecommitdiff
path: root/pango
Commit message (Collapse)AuthorAgeFilesLines
* Bug 685167 - migrate docs to no-tmpl flavourBehdad Esfahbod2013-09-2756-33/+1973
| | | | Patch from Rafał Mużyło.
* pango_attr_iterator_get_font(): handle scaling absolute font sizesOwen W. Taylor2013-09-251-2/+6
| | | | | | | | When handling PANGO_ATTR_SCALE on a font description with an absolute size, properly preserve the absolute flag when setting the scaled size. https://bugzilla.gnome.org/show_bug.cgi?id=708778
* Bug 708432 - gravity_map in fonts.c: "Upside-Down" should beBehdad Esfahbod2013-09-201-1/+1
| | | | PANGO_GRAVITY_NORTH instead of PANGO_GRAVITY_SOUTH?
* Correct an annotationMatthias Clasen2013-09-101-1/+1
| | | | | | The annotation for pango_layout_set_attributes should be 'transfer none', not 'transfer full'. Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=707874
* layout: Never return NULL from pango_layout_get_text()Benjamin Otte2013-09-091-0/+5
| | | | | | | | | | | layouts get initialized with text == NULL as an optimization (avoid a malloc). But pango_layout_set_text (layout, NULL, 0); will set the text to "", so it is impossible to set a NULL text. Fxies crashers in various places that assume NULL return values never happen. https://bugzilla.gnome.org/show_bug.cgi?id=707659
* Bug 707131 - removing useless test.Jehan2013-09-041-1/+1
| | | | | | | | | Since pango_scan_int() would return FALSE if the scanned value was over INT_MAX; and the reference out value's type is an int, (n > INT_MAX) test is unecessary. If pango_scan_int() behavior was to be changed to accept long int, an explicit test should be added (or the PangoAttrSize type updated to handle long int too).
* Bug 707131 - getting rid of the arbitrary MAX_SIZE for font.Jehan2013-08-311-7/+4
| | | | | Since the value is stored as an int, no reason to use any other value than INT_MAX.
* Bug 703995 - Compiler warnings about strict aliasingBehdad Esfahbod2013-08-306-16/+16
| | | | Patch from Akira TAGOH.
* Bug 705007 - sometimes the ordering of text is reversedBehdad Esfahbod2013-08-041-0/+2
| | | | Fix all-RTL reordering. Oops!
* Bypass line reordering if all runs have the same directionKristian Rietveld2013-07-171-2/+30
|
* Don't change fonts just for space charactersBehdad Esfahbod2013-06-061-6/+6
| | | | | | | | | | | | | | | | Back in the days we used to always use the font from surrounding runs for any space characters. I changed that when I found that rendering MathML results in hexboxes when a font doesn't have the space characters needed... Forward to these days: HarfBuzz will silently compatibility-decompose any space character to the ASCII space. And looks like it's important for Mongolian to not break runs around NNBSP. As such, go back to never choosing a font just for space characters. Seems to work, though more testing is needed. Bug 701652 - wrong shaped classic Mongolian word suffixes
* Bug 700577 - Support invalid UTF-8 chars in pango_find_paragraph_boundary()Behdad Esfahbod2013-05-271-1/+1
|
* don't break words between a letter adjacent to a numberJosé Aliste2013-05-021-17/+2
| | | | | | | Newer Unicode specs (6.2 for instance) say that one should not break between letter or numbers that are adjacent. This also makes us to match word selection with many text capable apps.
* Fix CoreText font scaling againBehdad Esfahbod2013-05-021-0/+2
| | | | | | | | This partially reverts 25ad29b488d3e2ae10e4fee25602409fa39207f1 which itself was a revert. Apparently we want the change in CoreText, but not on Win32... See mailing list discussion.
* MinorBehdad Esfahbod2013-04-251-1/+1
|
* Bug 696238 - PangoAttrFilterFunc vs pango_attr_list_filter docsBehdad Esfahbod2013-04-041-2/+2
|
* Bug 682846 - Use G_DEFINE_TYPE in pangowin32-fontmapBehdad Esfahbod2013-03-153-57/+22
| | | | Based on patch from Chun-wei Fan.
* Call g_type_init if necessaryBehdad Esfahbod2013-03-151-0/+8
|
* Remove unused codeBehdad Esfahbod2013-03-151-25/+1
|
* Port PangoWin32 to use GWeakRefBehdad Esfahbod2013-03-152-10/+10
| | | | Patch from Chun-wei Fan.
* Bug 694882 - build broken - introspection of pangoxft2 and pangoxft miss ↵Behdad Esfahbod2013-03-041-3/+4
| | | | libpang-1.0.la in _gir_LIBS
* Revert "Fix Win32 and CoreText cairo backends to take cairo CTM into account"Behdad Esfahbod2013-03-042-5/+0
| | | | | | | | | | | | | | | This reverts commit b359bb484bc7d27a835cfd6d9ffcaed582ebf2ae. Bug 694918 - Pango layout is rendered in wrong size if we have non-identity cairo transformation matrix I was wrong blindly copying this logic from pangocairo-fc into pangocairo-win32 and pangocairo-quartz. The reason we need the it in pangofc is because the fontsize we get back from fontconfig is multiplied by the ctm scale factor, so we undo it when loading the font. The same is NOT true about the non-fc backends, so the copying was totally wrong.
* Bug 694830 - Fails make check: +pango_font_map_changedBehdad Esfahbod2013-02-271-0/+1
|
* PangoFc: change FontMap in pango_fc_font_map_clear_cache()Alexander Larsson2013-02-261-0/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=694626
* Add pango_font_map_changed()Alexander Larsson2013-02-268-1/+93
| | | | | | | This is needed as a base class sometimes needs to invalidate the fontmap. https://bugzilla.gnome.org/show_bug.cgi?id=694626
* [win32] Fix assertion and warningsBehdad Esfahbod2013-02-252-4/+12
| | | | | | When win32 fontmap goes away, font->fontmap becomes NULL. Deal with that. Technically speaking, we need to port this to GWeakRef like the other fontmaps do. But this would do for now.
* Whitelist pango_cairo_win32_font_map_get_typeBehdad Esfahbod2013-02-191-2/+6
| | | | | | | .def files are mostly used on Win32. Whitelist the win32 font map function in the check. Bug 694095 - Fails make check: -pango_cairo_win32_font_map_get_type
* win32: Remove stale static module definitionsJasper St. Pierre2013-02-172-58/+5
| | | | These have now been put into Harfbuzz upstream
* pangocairo.def: Export pango_cairo_win32_font_map_get_typeChun-wei Fan2013-01-221-0/+1
| | | | This is needed to build the introspection files for PangoCairo on Windows.
* Revert "Don't use the deprecated pango_ft2_font_get_face"Behdad Esfahbod2013-01-172-17/+6
| | | | | | | | | | | | | This reverts commit 2dc0c3dbb1c389c3a3ba12a5c5c85f21dca46e84. This doesn't make sense. It ends up in infinite recursion because pangofc is calling lock_face on pangoft2, which would recursively call it on pangofc... Was causing hang at startup of Inkscape. If the deprecated warnings are an issue, they need to be dealt with in some other way.
* "prgname" and "fontfeatures" are accepted for upstream Fontconfig nowBehdad Esfahbod2013-01-151-2/+6
|
* Let people enable font features through fontconfig snippetsBehdad Esfahbod2013-01-101-0/+14
| | | | | | | | | | | | | Like this: <match target="font"> <edit name="pangofontfeatures" mode="append"> <string>smcp</string> <string>ss20</string> </edit> </match> Finally we are starting to see new features coming out of the HarfBuzz integration...
* Don't use deprecated pango_fc_font_get_unknown_glyphMatthias Clasen2013-01-071-1/+1
| | | | Replace it with PANGO_GET_UNKNOWN_GLYPH.
* Don't use the deprecated pango_ft2_font_get_faceMatthias Clasen2013-01-072-6/+17
| | | | Replace it with pango_fc_font_lock/unlock_face calls.
* Avoid deprecation warningsMatthias Clasen2013-01-071-0/+2
|
* Fix another compiler warningMatthias Clasen2013-01-071-1/+1
| | | | gcc doesn't like #ifndef LANGUAGE(x, y, z).
* Fix a compiler warningMatthias Clasen2013-01-071-2/+4
| | | | | Add the new paragraph_text/length parameters to the script_shape implementation in the fallback engine.
* Don't call g_type_init if GLib is new enoughMatthias Clasen2013-01-075-0/+10
| | | | | g_type_init has been deprecated in GLib 2.35.x. Use a version check here to avoid depending on unstable GLib.
* Fix warning in g_object_ref (NULL)Behdad Esfahbod2013-01-071-1/+4
|
* Update docs to reflect per-thread default fontmapBehdad Esfahbod2013-01-031-2/+12
|
* Make pango threadsafe!Behdad Esfahbod2013-01-031-23/+10
| | | | | | | | By way of declaring fontmaps NOT threadsafe, and making pango_cairo_font_map_get_default() return a thread-private fontmap. test-pangocairo-threads doesn't crash anymore, if used with fontconfig master.
* Link to gthread-2.0Behdad Esfahbod2013-01-031-1/+1
|
* Revert "Bug 689342 - Lifetime of patterns in pattern_hash may use too much ↵Behdad Esfahbod2013-01-031-168/+61
| | | | | | | | | | memory" This reverts commit 7ed3cb89923c376d8b30ae3f977ab9e1a231e430, after resolving conflicts. The patch introduced some lifecycle management issues that could easily cause crashing. Reverting till the issues are resolved.
* WhitespaceBehdad Esfahbod2012-12-301-4/+3
|
* Fix most of "failed to choose font" warningsBehdad Esfahbod2012-12-301-1/+10
| | | | | | | If we are in fallback mode, with a font that has to space glyph, then looking up engine/font for any character not in the font was failing badly. In that case, if there's only one engine (which is the case these days), just choose it.
* Don't RenderPrepare the FcFontMatch resultBehdad Esfahbod2012-12-301-7/+18
| | | | | After commit 7c1d6208a4b42ef3a3cce0d8dffb214c7a321e5e, the first matched font was being prepared twice, causing misconfiguration.
* Revert "Make PANGO_GLYPH flags an enum to make gobject-introspection happy."John Ralls2012-12-291-6/+4
| | | | | This reverts commit 7274bd56db3ce2f02594687a307d22aa99c787c4. Whatever the problem was with g-ir-scanner, it's resolved.
* Bug 689342 - Lifetime of patterns in pattern_hash may use too much memoryBehdad Esfahbod2012-12-201-46/+161
| | | | Refcount cached patterns.
* Bug 690279 - broken relocation of modulesBehdad Esfahbod2012-12-181-1/+7
| | | | Fix OS X relocation.
* markup: Remove error from markup parser constructorJasper St. Pierre2012-12-142-9/+10
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=679299