summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-07-30Fix misc leaksHEADmasterBehdad Esfahbod4-9/+16
https://bugs.freedesktop.org/show_bug.cgi?id=31992 https://bugs.freedesktop.org/show_bug.cgi?id=31993 https://bugs.freedesktop.org/show_bug.cgi?id=31994 https://bugs.freedesktop.org/show_bug.cgi?id=31995
2012-07-25[arabic] Fix Arabic cursive positioningBehdad Esfahbod1-1/+1
This was clearly broken in testing. Who knows... Fixes for me. Test with a Nastaleeq font, or with Arabic Typesetting. Backporting from Chromium.
2012-04-10Fix OOBBehdad Esfahbod1-1/+1
2012-03-27Fix bad memory access in Myanmar shaperBehdad Esfahbod1-1/+2
2012-03-27Fix problem with Indic shaper and control charsBehdad Esfahbod1-0/+2
2012-02-07Don't force using packed structsBehdad Esfahbod1-4/+0
This was causing SIGBUS on some ARM systems.
2012-01-18Fix RTL GPOS issueBehdad Esfahbod1-1/+1
Reported in Oct 2011 to the mailing list by John Tapsell and confirmed by Khaled Hosny. https://bugreports.qt.nokia.com//browse/QTBUG-4475 http://lists.freedesktop.org/archives/harfbuzz/2011-January/001062.html
2011-12-15Fix comparison bugBehdad Esfahbod1-1/+1
2011-11-01Fix bug in contrib/harfbuzz-unicode.cBehdad Esfahbod1-1/+1
2011-09-08Fix OOB access possibility in old harfbuzzBehdad Esfahbod1-1/+1
As reported by Kenichi Ishibashi.
2011-09-08Bug 30319 - open type init feature applied on character U+09c7 even...Behdad Esfahbod1-2/+2
2011-09-08Fix crash!Behdad Esfahbod1-0/+3
2011-07-13remove NoCategory from HB_CharCategoryLars Knoll2-3/+1
The enum value doesn't make sense, HB_Other_NotAssigned should be used for unassigned characters.
2011-02-01Fix hebrew shaping of characters with multiple diacritics.Lars Knoll1-2/+2
The old code would work for a maximum of one diacritic and insert dotted circles in valid syllables.
2011-01-14Fix a typo in harfbuzz thai line breaking.Ritt Konstantin1-1/+1
Reviewed-by: Lars Knoll
2010-09-07Remove unused local variable in myanmar shaperJiang Jiang (Nokia-MS-Qt/Oslo)1-4/+0
The logClusters local variable is not needed here since we are shaping syllable by syllable. Remove it to avoid compiler warnings about set but not used variables. Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
2010-06-25Null-terminate output data in to_tis620()Andreas Kling1-3/+5
This fixes a crash in thaiWordBreaks() detected a WebKit layout test. Specifically, editing/selection/thai-word-at-document-end.html Regressed with cce760d41f115fecd5b9b6b20b62883b10a9c204 Signed-off-by: Simon Hausmann <simon.hausmann@nokia.com>
2010-06-24Fix crashes at run-time with RVCT compiled codeSimon Hausmann1-1/+1
Disable data structure packaging with RVCT, it appears to miscompile. Signed-off-by: Anreas Kling <andreas.kling@nokia.com>
2010-06-22Fix crash with certain fontsSimon Hausmann1-4/+3
Regressed with a1714c84f245beb182a2221a1832b041788af200 and ab9a897b688e991a8405cf938dea9d6a2f1ac072, which removed the handling for value records that specify an device advance tables but do not actually have an offset for it. Previously HB_OPEN_Get_Device handled this through the HB_Device being allocated as structure and zero initialized. Now this case is represented by a null pointer HB_Device, which we must handle. Reviewed-by: Andreas Kling <andreas.kling@nokia.com>
2010-06-22Clean up HB_Anchor's DeviceTables on failure when loading format 3Andreas Kling1-1/+2
Signed-off-by: Simon Hausmann <simon.hausmann@nokia.com>
2010-06-22Make sure ValueRecord's DeviceTables are cleaned up on failureAndreas Kling1-2/+3
Cleanup was a missing for the case where loading an X placement device table failed. Signed-off-by: Simon Hausmann <simon.hausmann@nokia.com>
2010-06-22Fix null HB_Device** dereference on exit in Harfbuzz GPOS code Fix incorrect ↵Andreas Kling4-17/+21
usage of _HB_OPEN_Free_Device() in CaretValue cleanup Signed-off-by: Simon Hausmann <simon.hausmann@nokia.com>
2010-06-20Unbreak _HB_OPEN_Get_Device() and Get_ValueRecord()Andreas Kling3-33/+8
Fixes regression from 5ab1e41c + a1714c84 "Get" functions should read from tables, not create them. Signed-off-by: Simon Hausmann <simon.hausmann@nokia.com>
2010-06-18Make HB_AnchorFormat3's Device tables a pointer arrayAndreas Kling2-17/+31
Saves sizeof(pointer) * 1 when the font doesn't have these tables. Cuts resident memory consumption by 40kB when loading qt.nokia.com in QtWebKit. Signed-off-by: Simon Hausmann <simon.hausmann@nokia.com>
2010-06-18Re-enable data structure packing in Harfbuzz for RVCTSimon Hausmann3-15/+15
Re-ordered some gpos structures and removed the packing from HB_ShaperItem as it's not worth it. Reviewed-by: Andreas Kling
2010-06-18Fix compilation after previous changeSimon Hausmann1-4/+4
2010-06-18Make ValueRecord's Device tables a pointer arrayAndreas Kling2-51/+53
Many fonts don't have these tables, so we can save sizeof(pointer) * 3. This cuts resident memory consumption by 300kB when loading qt.nokia.com in QtWebKit. Signed-off-by: Simon Hausmann <simon.hausmann@nokia.com>
2010-06-16Fix compilation with RVCTSimon Hausmann1-1/+1
Disable structure packaging with RVCT for the moment
2010-06-16Build fix for C90 compilers (mixed declarations and code)Andreas Kling1-2/+4
Signed-off-by: Simon Hausmann <simon.hausmann@nokia.com>
2010-06-15Merge branch 'master' of ssh://git.freedesktop.org/git/harfbuzzLars Knoll16-165/+311
2010-06-15Reorder all internal Harfbuzz structures by member size.Andreas Kling7-120/+115
Signed-off-by: Simon Hausmann <simon.hausmann@nokia.com> Signed-off-by: Lars Knoll <lars.knoll@nokia.com>
2010-06-15Pack all internal Harfbuzz structures.Andreas Kling10-0/+70
This cuts persistent memory consumption by over 1MB when simply browsing some popular websites with QtWebKit. Signed-off-by: Simon Hausmann <simon.hausmann@nokia.com> Signed-off-by: Lars Knoll <lars.knoll@nokia.com>
2010-06-15Always allocate HB_Device structs dynamically.Andreas Kling6-37/+53
These are often unnecessary and allocating them dynamically will save 5 bytes per instance. Signed-off-by: Simon Hausmann <simon.hausmann@nokia.com> Signed-off-by: Lars Knoll <lars.knoll@nokia.com>
2010-06-15Disable support for Multiple Master fonts by default.Andreas Kling6-3/+68
Support for MM fonts was discontinued in OpenType 1.3 (April 2001) and we can save 8 bytes per ValueRecord by ignoring them. This does not introduce any behavior change, since Qt never installed a handler for MM fonts. Signed-off-by: Simon Hausmann <simon.hausmann@nokia.com> Signed-off-by: Lars Knoll <lars.knoll@nokia.com>
2010-06-15Shrink twelve HB_UShorts that only need to contain HB_Bytes.Andreas Kling4-12/+12
Signed-off-by: Simon Hausmann <simon.hausmann@nokia.com> Signed-off-by: Lars Knoll <lars.knoll@nokia.com>
2010-06-14Fixes for thai linebreakingLars Knoll5-75/+52
* Load libthai.so.0 since libthai.so is not there on all systems * Remove dependency on codecs. Unicode->TIS620 is so simple we can simply hardcode it in harbuzz-thai.c * Speed up detection of word boundaries * Falback when libthai is not found is now to not break instead of breaking after every character (in line with recommendations from unicode.org linebreaking algorithm) Reviewed-by: Simon Hausmann
2010-05-27use unsigned char instead of unsigned in the bitfield.Lars Knoll1-12/+24
This saves significant memory, as the HB_CharAttributes and HB_GlyphAttributes structures are not 4 byte aligned anymore, by aligned to 1 resp. 2 bytes. The change is not compliant with ISO C, but accepted by almost all compilers.
2010-05-17[hangul] Fix typoBehdad Esfahbod1-1/+1
2010-04-14Fix a bug in malayalam shapingLars Knoll3-28/+52
See http://bugreports.qt.nokia.com/browse/QTBUG-1887. We were not finding the base character correctly in the case where the syllable contained a ZWJ. In addition, the indic OT specs require us to also apply the 'loca', 'cjct' and 'calt' features. They seem to be mostly unused by todays fonts, but we should better apply them anyways.
2010-03-26fix a bug in the greek shaper that could lead to an endless loop.Lars Knoll2-13/+54
availableGlyphs has to be initialized before we call stringToCMap. Added a test case that triggered the problem.
2010-03-26Merge branch 'master' of ssh://git.freedesktop.org/git/harfbuzzLars Knoll10-104/+776
2010-03-22add support for polyphonic greekLars Knoll6-24/+552
Add a greek shaper that maps decomposed greek characters to their precomposed versions in the greek extended range. Reviewed-By: Simon Hausmann
2009-12-21revert change b90ffbace5536786eafe23e28ec3eee74c7c4e27Lars Knoll1-3/+1
The patch causes crashes using hebrew, and I can't see what the change is supposed to fix. See also http://bugreports.qt.nokia.com/browse/QTBUG-6436
2009-11-26Fix uninitialized error variable if the stream doesn't existGordon Schumacher1-1/+1
Qt-merge-request: http://qt.gitorious.org/qt/qt/merge_requests/2174 Reviewed-by: Eskil Signed-off-by: Simon Hausmann <simon.hausmann@nokia.com>
2009-11-20Bug 25199 - Variable "error" can be used without initialization.Behdad Esfahbod1-0/+3
2009-11-18Post substitutions should apply to the whole indic syllableLars Knoll2-10/+34
This fixes a bug in the rendering of Malayalam
2009-11-06add N'Ko support to the arabic shaperLars Knoll4-6/+99
Long outstanding bug report for Qt. See http://bugreports.qt.nokia.com/browse/QTBUG-1042
2009-11-05add support for N'KoLars Knoll4-6/+99
Extend the arabic shaping module to also support N'Ko.
2009-11-05fix bug with Malayalam Samvruthokaram.Lars Knoll2-0/+6
As reported on the mailing list on June 10, 2009 by Praveen A.
2009-11-05fix shaping of assamese raLars Knoll2-2/+16
See http://bugreports.qt.nokia.com/browse/QTBUG-1802