Commit Graph

168 Commits

Author SHA1 Message Date
Jonathan Kew
5ff3710968 bug 668813 pt 2 - maintain a character coverage map for gfxFontFamily. r=jdaggett 2011-08-09 09:06:01 +01:00
Jonathan Kew
694443dee1 bug 668813 pt 1 - check character coverage of other styles in the selected font family before falling back to other families. r=jdaggett 2011-08-09 09:00:52 +01:00
Jonathan Kew
cff1bc672a bug 695857 - update harfbuzz code and adapt gfx/thebes for revised harfbuzz API. r=jdaggett
harfbuzz library code from upstream harfbuzz-ng commit f51e167436a51b890ffe3f7f7920498fa287acd9;
replaced HB_SCRIPT_* with MOZ_SCRIPT_* codes in gfx;
adapted for changes to HB function signatures.
2012-02-14 08:03:01 +00:00
Edwin Flores
e20fcb14ba Bug 719288 - Fill and stroke SVG text with one Draw call r=roc 2012-02-04 13:11:09 +00:00
Nicholas Nethercote
a7ad4ef70e Bug 715453 - Remove computedSize from nsMallocSizeOfFun. r=jlebar,bhackett.
--HG--
extra : rebase_source : a65039a407daab45360a5b375b53cbf1bc05b7f6
2012-01-25 00:52:51 -08:00
Edwin Flores
0855766ec9 Bug 710521 - Refactor gfxFont to separate out drawing stroke and drawing to path. r=roc 2012-01-26 13:11:18 +01:00
Jonathan Kew
faa24b11a2 bug 716229 pt 2 - initialize font-matching using the group's primary font. r=roc 2012-01-15 08:45:09 +00:00
Jonathan Kew
c0b92e301e bug 708075 - observe memory-pressure notification and discard cached gfxShapedWord records. r=roc 2012-01-13 11:37:46 +00:00
Ed Morley
a5e2d37200 Backout f94f83c7f2df (bug 708075), 6bf51f18e69e (bug 717311) for test crashes 2012-01-12 13:30:39 +00:00
Jonathan Kew
451eefe74c bug 708075 - observe memory-pressure notification and discard cached gfxShapedWord records. r=roc 2012-01-12 12:44:05 +00:00
Jonathan Kew
ee5bca4de4 bug 716229 - don't switch fonts for non-printing control chars. r=roc 2012-01-10 20:40:30 +00:00
Jonathan Kew
2c2e690cb8 bug 703100 followup - fix potential crash due to string not being null-terminated. 2012-01-05 14:41:37 +00:00
Jonathan Kew
174cf9e76f bug 703100 - pt 5 - optimize allocation of gfxTextRun objects to avoid separate allocation for CompressedGlyph records. r=roc 2012-01-05 11:54:45 +00:00
Jonathan Kew
39b0dea87f bug 703100 - pt 4 - add timed expiration of cached gfxShapedWord records. r=roc 2012-01-05 11:54:45 +00:00
Jonathan Kew
d5a2294830 bug 703100 - pt 3 - remove copy of original characters from gfxTextRun. r=roc 2011-12-06 12:39:19 +00:00
Jonathan Kew
ccc9f44ded bug 703100 - pt 2.5 - adapt Android/FT2 font code to work with gfxShapedWord caches. r=roc 2011-12-06 12:39:19 +00:00
Jonathan Kew
8a374cd168 bug 703100 - pt 2.1 - implement gfxShapedWord caching for gfxFont instances. r=roc 2011-12-06 12:39:19 +00:00
Jonathan Kew
dab5dd6132 bug 703100 - pt 1 - eliminate gfxTextRunWordCache and gfxTextRunCache. r=roc 2011-12-06 12:39:18 +00:00
Bas Schouten
29a752007d Bug 711063 - Part 3: Adjust font code to be compatible with Azure wrapper. r=joedrew 2012-01-05 08:17:51 +01:00
Nicholas Nethercote
8f335f567c Bug 707865 - Convert nsTArray::SizeOf() to nsTArray::SizeOfExcludingThis(). r=jlebar.
--HG--
extra : rebase_source : d802d58bc7dedda2490878793923adc0ab55f779
2011-12-15 14:59:53 -08:00
Matt Brubeck
7d451f6bac Back out bug 710521, bug 672013, bug 702739 because of Mac reftest failures 2011-12-18 08:15:09 -08:00
Edwin Flores
a9f4f6c3c4 Bug 710521. Small refactor of gfxFont to separate drawing to paths and drawing strokes. r=roc 2011-12-18 21:53:03 +13:00
Bas Schouten
b1fe1c94c1 Bug 702851: Move mScaledFont into gfxFont superclass. r=jdaggett 2011-12-15 17:12:40 +01:00
Jonathan Kew
164f1ffdde bug 631479 (part 4) - implement gfxGraphiteShaper to handle text-shaping for graphite-enabled fonts. r=jdaggett 2011-12-09 22:32:29 +00:00
John Daggett
5b27f91689 Bug 693143. Fix top crasher related to small font sizes and bitmap fonts. r=roc 2011-12-07 12:02:53 +09:00
Nicholas Nethercote
f102556f32 Bug 698968 - Add mallocSizeOf functions and start using them. r=jlebar,bhackett,jfkthame, sr=bz. 2011-11-27 19:03:14 -08:00
Ehsan Akhgari
2a602a5685 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Jonathan Kew
36c1dc9fbe bug 671297 - add memory reporting for textRuns. r=roc,jlebar 2011-10-14 08:06:35 +01:00
Michael Wu
d8e503c38b Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Jonathan Kew
1f9c88fc75 bug 684889 - refactor and clean up Android font-list implementation. r=jdaggett 2011-09-23 12:15:36 +01:00
Ed Morley
69df3bc60b Backout changeset 864c08bd7c63 (bug 684889) for Android bustage 2011-09-23 10:36:16 +01:00
Jonathan Kew
66391fedb7 bug 684889 - refactor and clean up Android font-list implementation. r=jdaggett 2011-09-23 09:53:13 +01:00
Jonathan Kew
283225c307 bug 686190 - ensure glyph buffer is flushed when necessary during synthetic bolding. r=jdaggett 2011-09-12 13:10:46 +01:00
Jonathan Kew
52da6a7240 bug 3512 - fix computation of StyleDistance to account for font-stretch more accurately. r=jdaggett 2011-09-05 08:34:12 +01:00
Jonathan Kew
b3bc1a2f7c bug 674909 - make synthetic bolding proportionate to font size and zoom. r=jdaggett 2011-09-02 21:18:25 +01:00
Jonathan Kew
04e54a46d6 bug 680402 - avoid calling SanitizeGlyphRuns repeatedly during textrun construction with multiple scripts. r=jdaggett 2011-08-29 09:21:53 +01:00
Jonathan Kew
6ac2cac59a bug 678181 - backout changeset c433a1d53dd5 (bug 668813 pt 1) on suspicion of causing crashiness. r=backout 2011-08-15 18:32:19 +01:00
Ms2ger
66ab4757eb Merge m-c to m-i 2011-08-13 14:47:03 +02:00
Jonathan Kew
ef8cece286 bug 678181 - back out second part of bug 668813 (changeset 431a8297db1f) on suspicion of causing crashiness. r=backout 2011-08-13 13:34:56 +01:00
Rafael Ávila de Espíndola
92df261412 Bug 677648 - Change the type of the 'advance' variable in gfxTextRun::AdjustAdvancesForSyntheticBold, to allow using it to initialize the mAdvance field of DetailedGlyph using clang in c++0x mode; r=roc 2011-08-11 15:40:59 +02:00
Jonathan Kew
3468d6f6ed bug 668813 pt 2 - maintain a character coverage map for gfxFontFamily. r=jdaggett 2011-08-09 09:06:01 +01:00
Jonathan Kew
cf6ef49886 bug 668813 pt 1 - check character coverage of other styles in the selected font family before falling back to other families. r=jdaggett 2011-08-09 09:00:52 +01:00
Jonathan Kew
f6edd66077 bug 671385 - restore the recursive application of ForEachFontInternal to font names from preferences, to avoid breaking Fontconfig generics. r=jdaggett 2011-07-26 10:50:14 +01:00
Jonathan Kew
4ddf26ea1f bug 668758 - don't look up prefs font families in the user font set. r=jdaggett 2011-07-13 09:40:32 +01:00
Jonathan Kew
c7c5b7169b Backed out changeset 51b49a7cf2e4 (bug 668758) because of android bustage 2011-07-13 10:50:37 +01:00
Jonathan Kew
e163f1538f bug 668758 - don't look up prefs font families in the user font set. r=jdaggett 2011-07-13 09:40:32 +01:00
Jonathan Kew
636a69c177 bug 553571 - try to avoid breaking font runs at ZWNJ when using font fallback, because Indic scripts require shaping across the ZWNJ character. r=roc 2011-07-01 07:38:14 +01:00
Matt Brubeck
4e7caa789f Merge mozilla-central and mozilla-inbound 2011-08-12 07:08:33 -07:00
Jeff Muizelaar
cb92f6ff06 Bug 660662. Eliminate NS_(ceil|floor). r=roc
These just called the system versions.
2011-05-30 15:08:55 -04:00
Ed Morley
af1d9c6c2b Bug 661584 - Code cleanup, substitute more PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc,ted 2011-06-25 16:06:02 +02:00
Ed Morley
c8157ac7e6 Bug 664311 - Remove WinCE code from gfx/; r=jmuizelaar 2011-06-18 11:04:30 +02:00
Jonathan Kew
f9cb8da613 bug 467669 - pt 6 - provide the real font name rather than our internal identifier. r=roc 2011-06-16 07:31:37 +01:00
Jonathan Kew
0bc82a4ba2 bug 467669 - pt 3 - track which stage of font matching led to selection of a particular face. r=roc 2011-06-16 07:31:37 +01:00
Ehsan Akhgari
13d84f740f Backout bug 467669 and bug 660088 2011-06-15 16:52:48 -04:00
Jonathan Kew
be3ae9b1a0 bug 467669 - pt 6 - provide the real font name rather than our internal identifier. r=roc
--HG--
extra : rebase_source : d548ab2be329058bde101b142607abf14dce7191
2011-06-15 20:17:54 +01:00
Jonathan Kew
eacb2d87b0 bug 467669 - pt 3 - track which stage of font matching led to selection of a particular face. r=roc
--HG--
extra : rebase_source : 89e65a1d612dcee7872a18a5e4bb9b3591c3a63d
2011-06-15 20:17:51 +01:00
Masayuki Nakano
e06d6eb819 Bug 663036 part.3 gfx should use mozilla::Preferences r=roc+joe 2011-06-12 11:30:16 +09:00
Daniel Holbert
8556ef49be Bug 659466: Fix remaining data URI "#" --> "%23" conversions in testcases. r=bz 2011-05-26 01:20:08 -07:00
John Daggett
0cc810376c Bug 652754. Eliminate unnecessary font data enumerations at startup. r=jkew 2011-05-20 15:09:30 +09:00
John Daggett
d513f6e578 Backout 2e0e36b0feae due to odd Linux bustage 2011-05-20 16:13:01 +09:00
John Daggett
43f90511f3 Bug 652754. Eliminate unnecessary font data enumerations at startup. r=jkew 2011-05-20 15:09:30 +09:00
Ed Morley
d260544670 Bug 316661 - Part A - Remove null-checks before delete. r=bsmedberg 2011-05-17 16:01:36 +02:00
Jonathan Kew
916e9b8b24 bug 253317 - part 5 - support none/manual/auto values for -moz-hyphens in layout. r=roc 2011-05-04 12:29:56 +01:00
Jonathan Kew
6a0388114b bug 33032 - synthesize various Unicode space characters rather than showing missing glyphs. r=jdaggett 2011-05-02 10:01:55 +01:00
Jonathan Kew
450943ec19 bug 653100 - no longer need to save copies of layout tables prior to OTS sanitization. r=jdaggett 2011-04-28 09:01:59 +01:00
Jonathan Kew
fcadc04ff6 Backed out changeset 52b6489a3140 (bug 653100) because of reftest oranges. 2011-04-28 10:52:04 +01:00
Jonathan Kew
32c814b853 bug 653100 - no longer need to save copies of layout tables prior to OTS sanitization. r=jdaggett 2011-04-28 09:01:59 +01:00
Jonathan Kew
0d12b6c03d bug 608940 - remove unused function gfxTextRun::Clone. r=jdaggett 2011-04-28 06:06:53 +01:00
Jonathan Kew
8e92dd97a6 bug 642589 - expose prefs for tweaking DirectWrite/D2D antialiasing behavior. r=jdaggett 2011-04-21 07:29:50 +01:00
Robert O'Callahan
307547d062 Bug 641426. Part 3: Convert gfxRect::pos/size to x/y/width/height. r=joe,sr=cjones 2011-04-19 15:07:21 +12:00
Robert O'Callahan
73b97e72c4 Bug 641426. Part 2: Remove a bunch of direct gfxRect::pos/size usage. r=joe 2011-04-19 15:07:21 +12:00
Zack Weinberg
1a54f9512d Bug 648385: Remove gfxFont::GetUniqueName, r=jdaggett
--HG--
extra : rebase_source : 41f923803127440ab903e91c7f24e020b97b83f5
2011-04-11 17:59:42 -07:00
Jonathan Kew
95036edb98 bug 623495 - revise prefs for dispatching scripts to shaping backends; enable harfbuzz for Hebrew on OS X. r=smontagu 2011-04-11 12:17:31 +01:00
Doug Turner
ef35aa039b Bug 643307 - Crash [@ nsThebesFontMetrics::GetMetrics ]. r=blassey
--HG--
extra : rebase_source : 6d878a2ff10aa1030f71526dacb64d6d92882322
2011-03-29 11:50:39 -07:00
Jonathan Kew
bf757a9d0e Bug 623711 - erratic font selection with multiple @font-face rules and bad font resources; r=jdaggett 2011-03-23 23:01:50 -04:00
Ehsan Akhgari
d40a33c22e Backout changeset f39ad7e4054e (bug 623711) because of reftest failure 2011-03-24 00:15:02 -04:00
Jonathan Kew
cb230f5ba2 Bug 623711 - erratic font selection with multiple @font-face rules and bad font resources; r=jdaggett 2011-03-23 23:01:50 -04:00
Ehsan Akhgari
ca95c68a1e Merge mozilla-central into cedar 2011-03-23 18:29:19 -04:00
L. David Baron
4a7745e74d Remove tracking of which font families are quirky, since we no longer use the information. (Bug 636040) r=jdaggett 2011-03-03 13:18:42 -08:00
Jonathan Kew
c4c9f2d9e9 bug 499292 - hide fallback text for a short time while a font downloads. r=jdaggett a=beltzner 2011-01-05 21:48:48 +00:00
Jonathan Kew
1002db5143 bug 631035 part 1 - optimize storage of DetailedGlyph records. r=roc a=blocking2.0 2011-02-10 06:50:47 +00:00
Jonathan Kew
d7548946ee bug 624359 - iterate by clusters for mozTextAlongPath; r=vlad 2011-03-22 10:59:25 -04:00
John Daggett
eeb92a1447 Bug 602792. Clean up font logs and add system fallback logging. r=bas, a=blocker 2011-01-22 01:44:33 +09:00
Jonathan Kew
6256e2a358 bug 619511 - don't let font fallback on ZWJ propagate to following character. r=jdaggett a=joe 2011-01-13 10:58:26 +00:00
Jonathan Kew
13736eae4a bug 621918 - part 1 - eliminate aDirtyRect parameter from gfxTextRun::Draw etc. r=roc a=roc 2011-01-11 11:17:00 +00:00
Jonathan Kew
4f05106888 bug 617905 pt 1 - refactor gfxFont::InitTextRun so that all platforms benefit from splitting huge text runs. r=karlt a=joe 2011-01-07 12:38:28 +00:00
Jonas Sicking
69e373af1d Bug 610823: Change a few users that use nsTArrays as buffers to explicitly use fallible tarray. r=jdaggett a=blocker 2011-01-06 20:45:10 -08:00
timeless@mozdev.org
2d1e9665df Bug 620402 crash [@ gfxTextRun::BreakAndMeasureText] if haveHyphenation && !aProvider, r+a=roc 2010-12-20 15:54:00 -08:00
Jonathan Kew
e6c77cc666 bug 618870 - CompressedGlyph::SetMissing should not overwrite the clusterStart bit. r=karlt a=roc 2010-12-22 14:27:43 +00:00
Adam
75c73343b8 bug 612488 - make featureSettings fields use direct nsTArray rather than pointers. r=jfkthame a=joe 2010-12-09 11:52:03 +00:00
Karl Tomlinson
374455a6ee b=569770 part 3: provide public access to gfxFontEntry font table cache r=jfkthame
--HG--
extra : rebase_source : ea989eec6d22c0201a58cbe0bb045470e14907f0
2010-12-09 20:28:47 +13:00
Jonathan Kew
2f1ff76149 bug 553981 - handle Hangul Jamo sequences and other special cases when marking clusters. r=karlt a=roc
--HG--
extra : transplant_source : M%C8%2B%D6%B7%CBG%8E%EEE7%AC%97%01%A0%E4%DF%FB%F3%9B
2010-12-06 13:22:24 +00:00
Jonathan Kew
624388b152 bug 467722 - don't short-circuit pref font search unless the previous search really did use the first font. r=jdaggett a=roc 2010-12-06 10:51:02 +00:00
Ms2ger
3ec44ade0c Bug 605179 - Fix build warnings in gfx/; r=roc a=bsmedberg
--HG--
extra : rebase_source : f9bd24d5f4bc6124b431ce22e6ac72bd218dc208
2010-12-05 18:38:12 +00:00
Karl Tomlinson
ed9e78b8a6 b=605872 refactor mFontTableCache, providing a sharing/saving distinction to fix a hb_blob_t leak r=jfkthame a=blocking
--HG--
extra : transplant_source : u%FB%E2%9D%A8g%1ASG%FB%A4%12%A2kGi%882%ED9
2010-11-26 14:07:09 +13:00
Jonathan Kew
deef686723 bug 594078 - fix handling of regular vs italic during font fallback search. r=jdaggett a=benjamin 2010-11-25 15:36:49 +00:00
Jonathan Kew
94c89c69d7 bug 606714 - shape long text runs in sections. r=jdaggett a=blocking2.0 2010-11-11 11:21:05 +00:00
Jonathan Kew
9eeab3f07b Backed out changeset 7e3e4c91c0f7 due to Linux failures 2010-11-11 12:18:02 +00:00
Jonathan Kew
c2e6d96f80 bug 606714 - shape long text runs in sections. r=jdaggett a=blocking2.0 2010-11-11 11:21:05 +00:00
Karl Tomlinson
d3baabcd62 b=597147 part 4b: pass run script to FindFontForChar and add gfxPangoFontGroup implementation r=jfkthame
--HG--
extra : transplant_source : %1D%B2%B9O%9F%2C%05%81%B4%C8%BER%9B%5D%A0%3A-%AB%98%F5
2010-11-08 11:44:51 +13:00