summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/FontAndroid.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Added Y positions for complex script rendering.claireho2011-10-211-22/+24
| | | | | | | | | Bug 5445861: Some Thai accents are misplaced in browser TextRunWalker only gets the x positions from Hrafbuzz but no Y positions. This CL applied the changes http://trac.webkit.org/changeset/85013/ to pass both x and y positions from harfbuzz to skia. Change-Id: Ibb23d61eb58c2e687c7ea7773d2266d68ce9ab97
* Reapply CL for "Vertical Writing Mode" support.claireho2011-10-171-3/+20
| | | | | | | | | | | | | | | | | | | | Bug 5094208 - Browser does not handle Japanese text in vertical writing mode. This changeset syncs up with Chrome's implementation for vertical text rendering. It 1. Adds fontOrientation and textOrientation to FontPlatformData. 2. Rotates the text in drawGlyphs for vertical writing mode. Here are the changesets for Chrome's vertical writinig mode support: 1. http://trac.webkit.org/changeset/74232 2. http://trac.webkit.org/changeset/80610 3. http://trac.webkit.org/changeset/80654 This CL re-applies reverted CL136684(https://android-git.corp.google.com/g/#/c/136684/). CL136684 was rollbacked because 2 constructors in FontPlatformDataAndroid.cpp did not have the init for fontOrientation and textOrientation. That caused the inconsistent comparison while FontCache.cpp tries to get the cached font and falls into an infinite loop in HashTable.h:656 Change-Id: I45700dcc8c9266e1b5ae8e588205f24825ca4317
* Merge "Revert "Support "Vertical Writing Mode".""Nicolas Roard2011-10-121-21/+3
|\
| * Revert "Support "Vertical Writing Mode"."John Reck2011-10-121-21/+3
| | | | | | This reverts commit 5403113c5aa5d55a05ea001f562829e907632178
* | Merge "Support "Vertical Writing Mode"."claireho2011-10-111-3/+21
|\ \ | |/
| * Support "Vertical Writing Mode".claireho2011-09-201-3/+21
| | | | | | | | | | | | | | | | | | Bug 5094208 - Browser does not handle Japanese text in vertical writing mode. This changeset syncs up with Chrome's implementation for vertical text rendering. It 1. Adds fontOrientation and textOrientation to FontPlatformData. 2. Re-layout the text in drawGlyphs for vertical writing mode. Change-Id: Icac88a464b4b25b05c758a4e24c1827e0a7a0c91
* | Rename Lohit_Hindi to Lohit-DevanagariRussell Brenner2011-09-231-1/+1
|/ | | | | Bug: 5364436 Change-Id: I0ce921e330ab892d8334b3b8bf4539e6a175a78c
* Merge "Reapply CL for: "Fix for antialiased text with shadows.""Derek Sollenberger2011-09-011-0/+1
|\
| * Reapply CL for: "Fix for antialiased text with shadows."Derek Sollenberger2011-09-011-0/+1
| | | | | | This reverts commit e6303b0e3d1473670390053d70a691697ac8b0e6
* | Add Harfbuzz support for fallback fonts (redux)Russell Brenner2011-08-231-5/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When Skia resorts to fallback fonts for non-latin characters, it retains the font ID of originally requested font, concealing the fact that a fallback was invoked. Harfbuzz needs to know the fallback font ID to read the correct GSUB/GPOS tables from the fallback font file so that these complex languages can be properly rendered. This change uses the script recognized by Harfbuzz as a means to surmise the fallback font that would be used by Skia and then injects that font file as a replacement for the originally requested font. Fallback fonts are loaded once and reused multiple times. An earlier implementation did not cache fonts in this way, causing large pages to run out of files for mmap streaming. Bug: 5087744 Change-Id: I61222829209d9bd6df465d37923ccff3681c2c54
* | Revert "Add Harfbuzz support for system fallback fonts"Russell Brenner2011-08-181-42/+5
| | | | | | | | | | | | | | | | | | | | On large pages, too many font file references are open for mmap streaming. Rolling back this feature while I add caching. This reverts commit cfcbe02678eabf19b6b904be61d9991d4515ecb6. Bug: 5179817 Change-Id: I689db7794c945d548a90006b9484467b784d4b11
* | Add Harfbuzz support for system fallback fontsRussell Brenner2011-08-161-5/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When Skia resorts to fallback fonts for non-latin characters, it retains the font ID of originally requested font, concealing the fact that a fallback was invoked. Harfbuzz needs to know the fallback font ID to read the correct GSUB/GPOS tables from the fallback font file so that these complex languages can be properly rendered. This change uses the script recognized by Harfbuzz as a means to surmise the fallback font that would be used by Skia and then injects that font file as a replacement for the originally requested font. Bug: 5087744 Change-Id: I3a3469bcd589ee796c9b5a828fb47d40ecb38738
* | Fix for Devanagari diacritical marksRussell Brenner2011-07-271-2/+1
|/ | | | | | | | | It appears that offsetX and advance were at odds with each other. Eliminating offsetX causes the diacritical marks to be positioned correctly. Bug: 4309954 Change-Id: I51fbdd4523ba7de1a2d981b971fdd4f1d42b979c
* Revert "Fix for antialiased text with shadows."Derek Sollenberger2011-06-031-1/+0
| | | | | This breaks master-gpl. We can resubmit this after updating the version of skia in master-gpl. This reverts commit a3d968a2da0ae3463991e973e38af6795ad36c2e
* Fix for antialiased text with shadows.Derek Sollenberger2011-06-031-0/+1
| | | | | bug: 4502715 Change-Id: I5301526da2ff4962e7d1fda2b0ad39c407013e05
* Merge WebKit at r78450: Add new Font::canExpandAroundIdeographsInComplexText()Steve Block2011-05-251-0/+5
| | | | | | See http://trac.webkit.org/changeset/76743 Change-Id: Ic85c640534b133883a03e0c0b71ac8987e6913e7
* Merge WebKit at r78450: TextRun::padding() renamedSteve Block2011-05-251-1/+1
| | | | | | See http://trac.webkit.org/changeset/76743 Change-Id: Ia9f39b83ea6e9a97e271f5545c3cc36ed5c65800
* Merge WebKit at r76408: Fix FontAndroid.cppBen Murdoch2011-05-231-0/+1
| | | | | | | | | | TextRun.h was removed as an include from Font.h. This is where FontAndroid was picking it up from. Add it into FontAndroid.cpp. See http://trac.webkit.org/changeset/76170 Change-Id: I2d1306fde1742a2e75cb7b47c2a0ad132939258c
* Use adoptPtr() and adoptArrayPtr() when setting OwnPtr and OwnArrayPtrSteve Block2011-05-191-2/+4
| | | | | | | | | | | We should not be using OwnPtr/OwnArrayPtr::set() - see LOOSE_OWN_PTR and LOOSE_OWN_ARRAY_PTR in OwnPtr.h and OwnArrayPtr.h. LOOSE_OWN_ARRAY_PTR will be removed in http://trac.webkit.org/changeset/77785 so fixing now to avoid later problems. Change-Id: I81552b1bc5e1555a3d46e0db1f9916c68878c751
* Merge WebKit at r75315: Move Android-specific WebCore files to SourceSteve Block2011-05-121-0/+1043
This moves files in the following WebCore subdirectories ... - bindings/js - bindings/v8/custom - plugins/android - platform/android - platform/graphics/android - page/ - css/ - dom/ - loader/archive/android