Commit Graph

1040 Commits

Author SHA1 Message Date
Zack Weinberg
0cb6b35cce Add .zeroOrAveCharWidth field to gfxFont::Metrics. Initialize it in all font backends. Use it when computing CSS 'ch' units, and make eStyleUnit_Chars and nsLayoutUtils::CharsToCoord unused. (Bug 363706) r=roc sr=dbaron 2008-07-01 20:24:36 -07:00
John Daggett
d4c50db758 Bug 433997. Catch null ptrs returned by CGFontGetHMetrics in cairo mac font code to prevent top crasher. r+sr=vlad 2008-07-01 09:02:21 +09:00
Simon Montagu
aea64b3cb9 Set glyph info for low surrogates in Pango. Bug 439910, r+sr=roc 2008-06-18 23:14:51 -07:00
Ginn Chen
f72ebb22d6 Bug 435739 Poor performance of Firefox 3 with no X RENDER extension
r=vladimir
2008-06-11 18:29:21 +08:00
Robert O'Callahan
34ee8b8bbb Add Width/Height/GetDataSize getters to gfxImageSurface. r=vlad 2008-06-11 11:46:32 +12:00
Robert O'Callahan
31af099e04 Add 2-axis Scale, operator-, and Contains to gfxRect. r=vlad 2008-06-11 11:43:51 +12:00
Robert O'Callahan
a8e32416ef Make gfxImageSurface clear allocated surface data. r=vlad 2008-06-11 11:05:43 +12:00
pavlov@pavlov.net
a5d1b870e6 bug 434401. crash due to not finding a font on startup in some cases. r=karlt a=beltzner 2008-05-28 16:55:40 -07:00
mozilla@weilbacher.org
ceacb00c81 [OS/2] Bug 432575: add options for font hinting and antialiasing to get approximately equal display than on branch. (Oops, don't want to get the debugging output by default!) 2008-05-28 05:55:36 -07:00
mozilla@weilbacher.org
1c5dc0098b [OS/2] Bug 432575: add options for font hinting and antialiasing to get approximately equal display than on branch. 2008-05-28 05:38:09 -07:00
gavin@gavinsharp.com
2193f848b1 Bug 432062: Windows vector font rendering is broken, patch by roc@ocallahan.org, r=stuart, a=schrep 2008-05-08 08:38:22 -07:00
pavlov@pavlov.net
2402023474 bug 432065. deal with multiple fonts with the same name. r=roc a=schrep 2008-05-07 13:29:48 -07:00
Vladimir Vukicevic
820030d6b2 [qpainter] Create QImages directly from image surfaces used as source 2008-05-04 11:51:37 -07:00
crowder@fiverocks.com
7ffacfd412 Bug 431413: Crash in gfxWindowsFontGroup::InitTextRunUniscribe, r=pavlov, sr=roc, a=mtschrep 2008-05-03 21:25:13 -07:00
Vladimir Vukicevic
61d5de4912 Branch merge. 2008-05-01 09:23:23 -07:00
Oleg Romashin
82edc89756 Fixed optimized cairo_surface_fill for image surface
Enable OptimizeImage for X11 QSurface
2008-05-01 14:50:24 +03:00
jdaggett@mozilla.com
155ba88610 Bug 418479. Allow antialiased text rendering to be disabled for small text sizes via a pref. r+sr=vlad, a=damons 2008-05-01 02:07:17 -07:00
Vladimir Vukicevic
71d470b9e7 Merging mozilla-central to mozilla-qt. 2008-04-30 16:00:19 -07:00
roc+@cs.cmu.edu
bdc627e140 Bug 427411. Handle bogus fonts being returned by Windows due to the font catalog being stale or out of GDI objects. r=pavlov,a=damon 2008-04-29 20:37:30 -07:00
Vladimir Vukicevic
10e2cf8a01 [cairo-qpainter] Create QPixmaps with an alpha channel if required 2008-04-28 18:15:30 -07:00
roc+@cs.cmu.edu
f4aaba59ec Backing out bug 427411 2008-04-28 17:28:22 -07:00
roc+@cs.cmu.edu
9a73c732a7 Bug 427411. Handle GetTextMetrics failing when we create a gfxWindowsFont (can happen if we're out of GDI resources or Windows' font catalog is stale). r=pavlov,a=damon 2008-04-28 15:30:22 -07:00
vladimir@pobox.com
fb8045c358 b=429915, color mismatch with 1x1 images (SetColor API broken) ; r=stuart, a=damon 2008-04-28 14:27:05 -07:00
jruderman@hmc.edu
e62aac0e91 Adding a crashtest 2008-04-22 21:09:02 -07:00
roc+@cs.cmu.edu
b6313dc0d4 Bug 429899 crashtest 2008-04-22 19:08:20 -07:00
roc+@cs.cmu.edu
1509b8dce8 Bug 429899. Always treat the first character of a ligature as the start of a cluster when dividing ligature width among clusters. r+a=vlad 2008-04-22 19:06:22 -07:00
Stuart Parmenter
956d17e4da removing printfs 2008-04-20 04:38:54 -07:00
Stuart Parmenter
e30ec1dae9 use fontconfig for font lookup misses and cache the results 2008-04-20 04:34:04 -07:00
Stuart Parmenter
72d5cedc28 removing +x on the files 2008-04-20 03:37:33 -07:00
Vladimir Vukicevic
cc32b20298 [qpainter] Add getters for QImage; also make OptimizeImages a noop
The QPainter back end knows how to create a QImage from an image surface
while painting, so no need to copy the image.
2008-04-20 01:40:10 -07:00
stuart
84cb5da13d adding synthetic italic support 2008-04-19 19:07:24 +03:00
romashin
7b6b890c3a Probably Fixed crash on device
Add binary package microb-precious
2008-04-19 19:07:05 +03:00
vlad
15b3e60502 Qt: widget/gfx work
- Fix crash on window close
  - Qt expects the QWidget to remain available even after it has
processed a close event. So, use deleteLater() instead of
deleting outright.
  - Also carry around the MozQWidget pointer (though we need to rework
CreateQWidget and ::Initialize) so that we can call dropReceiver

- Fix screen <-> widget coordinate translation
  - Fixes popup menu positioning

- Honor mayWait in nsAppShell::ProcessNextNativeEvent
  - Prevents massive busy-waiting

- Don't pretend to support translucent windows

- Fix embedding widget build failure

- cairo-qpainter: invert source matrix in paint() to get proper
transform (proper positioning of elements drawn using paint())

- Cleaner event handling in mozqwidget -- return full nsEventStatus,
not just boolean, and decide whether to call QWidget::event() based
on that.
2008-04-19 19:02:53 +03:00
romaxa@romaxa.research.nokia.com
1e6bd20e92 Remove files added by mistake 2008-04-19 18:56:33 +03:00
romashin
9383b23d55 Fixed compilation problems with sb-QT arm 2008-04-19 18:53:37 +03:00
romashin
c5fe03a88c Added new cairo-qt surface from Vlad's patch
New created files moved in sandbox/qt_port.. cairo and gfxQPainterSurface
Changes for existing files applyed from 100_qt-qpainter-cairo.diff
Fixed building non deb mozilla with build_non_deb.sh script
Fixed tab-spaces in new created file cairo-qpainter-surface.cpp
2008-04-19 18:43:23 +03:00
romashin
92b53dacd5 Return back Qt font using 2008-04-19 18:40:46 +03:00
romashin
65ff5bf8cb Added cairoFontface destroy 2008-04-19 18:40:37 +03:00
romashin
63cec293f0 Some metrics cleanup 2008-04-19 18:40:28 +03:00
romashin
7df91b1795 Added CairoFontFace creation from FcPattern 2008-04-19 18:40:24 +03:00
romashin
f7041ddc2a Add more proper initialization of QFont, weight, styles... 2008-04-19 18:40:20 +03:00
romashin
c8eb68b016 Fixed www.linux.org.ru displaying 2008-04-19 18:40:16 +03:00
romashin
624786a657 Added comment about QFontMetricsF 2008-04-19 18:40:03 +03:00
romashin
ff8612be79 Enabled stuff for proper mMetrics.subscriptOffset mMetrics.superscriptOffset calculation 2008-04-19 18:39:59 +03:00
romashin
63814e51af Added some stuff from gfxPangoFonts implementation 2008-04-19 18:39:55 +03:00
romashin
1609d46525 Add SanitizeMetrics 2008-04-19 18:39:50 +03:00
romashin
cd0626528d Fixed underline offset 2008-04-19 18:39:46 +03:00
pekka.aho
fbfdd6a80b New version gfxQtFontGroup (kerning & missing glyph support) 2008-04-19 18:39:34 +03:00
pekka.aho
564f4e929f Basic font implementation 2008-04-19 18:37:47 +03:00
pekka.aho
6c79b2fceb first version of the gfxQtFontGroup 2008-04-19 18:37:43 +03:00
pekka.aho
c3a84ac1ef First version of gfxQtFont 2008-04-19 18:37:38 +03:00
romashin
55335215e0 Some font updates 2008-04-19 18:37:23 +03:00
pekka.aho
22805a0c52 first version of gfxQtFont::GetMetrics 2008-04-19 18:37:18 +03:00
romashin
98b89e39ea Added more debug info for fotns 2008-04-19 18:37:14 +03:00
Oleg Romashin
ca81ff0a1b Added Screen Manager
Some fixes and addditional stuff for fonts
2008-04-19 18:14:15 +03:00
Oleg Romashin
5b7615673a Simple stuff for QT fonts (no crash) 2008-04-19 18:14:11 +03:00
Oleg Romashin
e87ddcbfe9 Process updates 2008-04-19 18:13:55 +03:00
romaxa@romaxa.research.nokia.com
294c342ecb Add base implementation of gfxQtPlatform and widget/qt 2008-04-19 18:02:52 +03:00
romaxa@romaxa.research.nokia.com
863ea5db54 Add initial fonts stuff for Qt port 2008-04-19 16:46:17 +03:00
romaxa@romaxa.research.nokia.com
ceb1675498 Add new cairo-qpainter backend for building in cairo-qt configuration 2008-04-19 16:34:30 +03:00
romaxa@romaxa.research.nokia.com
276c52d6f3 Add cairo-ft dependency for QT-gfx 2008-04-19 16:31:30 +03:00
romaxa@romaxa.research.nokia.com
4443878b3b Enabled building of gfxQtFonts and gfxQtPlatform for cairo-qt configuration 2008-04-19 16:19:04 +03:00
jdaggett@mozilla.com
bb0afdab7b Bug 428458. Fix fixed-pitch font handling for mac/win. r+sr=roc, a=vlad 2008-04-18 02:11:47 -07:00
jdaggett@mozilla.com
c7589df10d Bug 427602. Switch use of TArray<nsAutoString> to TArray<nsString> within gfx code. r=stuart, a=schrep (reland) 2008-04-17 21:32:18 -07:00
gavin@gavinsharp.com
41a8b9aca8 Bug 405684: checking incorrect character in UniscribeItem::ComputeRanges, patch by pavlov@pavlov.net, r=vlad, a=beltzner 2008-04-17 18:46:47 -07:00
roc+@cs.cmu.edu
c2d86b13a7 Backing out 427602 to try to fix failures 2008-04-17 04:18:58 -07:00
jdaggett@mozilla.com
64873fcdb8 Bug 427602. Switch use of TArray<nsAutoString> to TArray<nsString> within gfx code. r=stuart, a=schrep 2008-04-17 01:30:15 -07:00
karlt+@karlt.net
eddd24c738 Ensure aveCharWidth is wide enough for numerals. b=410405 r=pavlov a1.9=schrep 2008-04-15 18:03:51 -07:00
roc+@cs.cmu.edu
818354a81e Bug 427730. Make text for ATSUI layout end in ' ' or ' .' instead of '.', to ensure the last character isn't treated as the start of a kerning pair. r=jdaggett,sr=vlad,a=beltzner 2008-04-14 18:48:19 -07:00
masayuki@d-toybox.com
287d22df96 Bug 426616 Acid2 chin is 1px too tall in FF3b5 r=pavlov, sr=roc, a1.9=beltzner 2008-04-12 01:54:18 -07:00
reed@reedloden.com
f009766d36 Bug 427985 - "Mozilla stops repainting in this testcase after a while" (leak fix) [p=pavlov@pavlov.net (Stuart Parmenter) r=vlad b1.9+a1.9=damons] 2008-04-11 00:01:14 -07:00
karlt+@karlt.net
c80bf6092b Use a PangoFontMap for pango_itemize that provides the same primary font from document language rather than adjacent characters b=416725, r+sr+a1.9=pavlov 2008-04-08 23:55:49 -07:00
karlt+@karlt.net
0cf6277752 Backing out b=410405 to see if it fixes test failures. 2008-04-08 19:29:44 -07:00
karlt+@karlt.net
1beaea6698 Ensure aveCharWidth is wide enough for numerals. b=410405, r=pavlov. 2008-04-08 17:02:41 -07:00
longsonr@gmail.com
3960d8eed6 Bug 425662 - Scaled SVG content can get the wrong metrics and poison the cache. r+sr=roc,a1.9=beltzner 2008-04-08 06:12:04 -07:00
jdaggett@mozilla.com
39147e5827 Bug 423571. Short circuit system-wide font fallback for U+FFFD on Mac. r+sr=vlad 2008-04-08 01:46:15 -07:00
pavlov@pavlov.net
c427eda76f bug 427084. Use GetGlyphIndiciesW rather than ScriptGetCMap for type1 fonts. r=vlad 2008-04-08 00:32:38 -07:00
joshmoz@gmail.com
a792241808 back out 425662 for longsonr because it might have caused tbox orange 2008-04-07 20:53:12 -07:00
longsonr@gmail.com
b80142843b Bug 425662 - Scaled SVG content can get the wrong font size and poison the font cache. r+sr=roc,a1.9=beltzner 2008-04-07 16:18:12 -07:00
vladimir@pobox.com
70b5dae5ab dummy commit to kick tinderbox 2008-04-06 23:34:48 -07:00
vladimir@pobox.com
b52afa817f b=419715, upgrade cairo to 1.6 or as-close-as-possible -- imported patch cairo-upgrade.patch ; r=me 2008-04-06 22:08:30 -07:00
vladimir@pobox.com
5f1dc77014 backout [mq]: cairo-rollback.patch 2008-04-06 16:34:08 -07:00
vladimir@pobox.com
ec70458884 b=419715, upgrade cairo to 1.6 or as-close-as-possible -- imported patch cairo-upgrade.patch ; r=me 2008-04-06 15:14:09 -07:00
roc+@cs.cmu.edu
28e7176f99 Crashtest for bug 423270. 2008-04-06 03:14:31 -07:00
roc+@cs.cmu.edu
2fff5df7ad Bug 423270. Make gfxTextRunWordCache handle cases where a space and another character combine to form a ligature. r=vlad 2008-04-06 03:12:21 -07:00
pavlov@pavlov.net
fc445a5221 bug 425336. check for S_OK explicitly rather than != S_FALSE. r=vlad 2008-04-04 00:39:58 -07:00
smontagu@smontagu.org
e0da0a8a1c Bug 378105. Update default fonts for Indic scripts. r=pavlov, ui-review+approval1.9=beltzner 2008-04-03 21:23:18 -07:00
pavlov@pavlov.net
c8940dd91d bug 425336. fix problems with bitmap and vector fonts. r=vlad 2008-04-03 19:21:06 -07:00
jdaggett@mozilla.com
87dc00328b Bug 419744. Load font cmap info via a background task. r+sr=stuart 2008-04-03 19:01:22 -07:00
roc+@cs.cmu.edu
421ea5a76e Bug 421885. Make tiled image drawing sample only the correct subimage by manually padding if necessary. r=vlad 2008-03-31 02:40:53 -07:00
masayuki@d-toybox.com
dac1bf4602 Bug 425488 Underlines are too far from text (e.g. Gmail links) r+b1.9=stuart 2008-03-29 15:27:25 -07:00
masayuki@d-toybox.com
3b28b33c93 Bug 421353 Moving the mouse over text hyperlinks which become underlined spikes cpu usage r=roc+stuart, sr=roc, a1.9=beltzner 2008-03-29 14:25:15 -07:00
reed@reedloden.com
9daab6c56d Back out Robert O'Callahan's patch from bug 421885 due to reftest failure. 2008-03-28 02:32:03 -07:00
reed@reedloden.com
dbbcc3c1e1 Bug 421885 - "Google reader search results have strange red line and broken border around them" [p=roc@ocallahan.org (Robert O'Callahan [roc]) r=vlad a=blocking1.9+] 2008-03-28 01:40:02 -07:00
vladimir@pobox.com
613d66abe2 b=425593, print failure with 'some printing functionality not implemented' message (it\'s NS_OK, really!); r=stuart 2008-03-28 00:13:37 -07:00
pavlov@pavlov.net
565b77dab4 bug 424945. reduce GDI object use by using the selected font weight and rounded font size (when no size adjust) for doing cache lookups. r=vlad 2008-03-27 16:30:43 -07:00
jruderman@hmc.edu
19a7e717ac Add a crashtest 2008-03-26 19:40:46 -07:00
vladimir@pobox.com
79d1a9ec4b b=409953; deref of null pointer on cancel of print-to-file (ignoring errors during printing is bad, mmmkay?); r=stuart 2008-03-26 18:21:46 -07:00
jruderman@hmc.edu
cd52dacf80 Adding a crashtest. 2008-03-26 18:20:59 -07:00
jruderman@hmc.edu
992b50dde4 Add crashtests 2008-03-26 16:23:43 -07:00
masayuki@d-toybox.com
dd3c2dd396 Bug 425249 gfxWindowsPlatform::InitBadUnderlineList() is broken by bug 424018 r+b1.9+a1.9b5=stuart 2008-03-26 14:43:43 -07:00
pavlov@pavlov.net
a5e1d92beb bug 424018. fix ts regression by loading character maps lazily. r=vlad 2008-03-26 14:32:51 -07:00
pavlov@pavlov.net
135b89a2f5 backing out previous patch. 2008-03-26 13:24:37 -07:00
pavlov@pavlov.net
fec95021eb bug 424018. make character map loading lazy to fix ts regression. r=vlad a=beltzner 2008-03-26 11:02:57 -07:00
reed@reedloden.com
0edd7732fd Bug 424650 - "Wrong nsAutoPtr usage break Mingw build" [p=Techrazy.Yang@gmail.com (Bo Yang) r=stuart a1.9b5=beltzner] 2008-03-24 21:46:30 -07:00
pavlov@pavlov.net
502a03c7c7 backing out trial patch for bug 424018. 2008-03-23 01:23:45 -07:00
pavlov@pavlov.net
22926dc2ae trial run for bug 424018. trying to fix Ts regression 2008-03-22 22:41:52 -07:00
pavlov@pavlov.net
397473b752 bug 424566. fix crash in font selection. r/a=vlad 2008-03-22 18:13:10 -07:00
pavlov@pavlov.net
2804ee6193 bug 424165. clamp font weights from the OS to be within 100 and 900. r/a=vlad 2008-03-21 21:16:00 -07:00
pavlov@pavlov.net
f105278877 bug 399636. make symbol fonts behave in unexpected ways. r=vlad a=beltzner 2008-03-21 15:19:12 -07:00
pavlov@pavlov.net
bfb114819b bug 424398. fix crash when installing new fonts while loading pages. r=vlad a=beltzner 2008-03-21 14:22:29 -07:00
pavlov@pavlov.net
84068effeb bug 418384. use GDI when Uniscribe doesn't like a font. Fixes crash. r=vlad a=beltzner 2008-03-21 13:22:58 -07:00
pavlov@pavlov.net
468c0a7fec bug 424165. Fixes crashes and problems with choosing a bold font when we should pick a lighter one. r=vlad a=beltzner 2008-03-20 15:09:45 -07:00
pavlov@pavlov.net
7b4f31ae8f bug 382542. support synthetic bold for fonts. r=vlad 2008-03-19 22:35:05 -07:00
pavlov@pavlov.net
72053cdb4e bug 382542. fix problems with font fallback and font variations. r=vlad/jdaggett 2008-03-19 17:41:19 -07:00
jdaggett@mozilla.com
84f4a2d982 Bug 364713. Synthetic bolding/italics on mac using double-strike and font matrix skew. r=vlad,stuart, sr=stuart 2008-03-19 17:02:21 -07:00
dholbert@cs.stanford.edu
15bc2e8781 Bug 417356: Define & use "UnwriteableMargin" PrintSettings pref, to make Linux printing work more like Mac printing (keeping us from printing right up against the edge of the page) Orig Patch: [r=ventron sr=roc] Updates: [r=ventron r+sr=vlad] a=blocking1.9+ 2008-03-19 13:51:42 -07:00
pavlov@pavlov.net
12d3737257 bug 382542. Deal with different style variations of fonts containing different character maps. r=vlad 2008-03-18 17:06:55 -07:00
vladimir@pobox.com
d945c03654 b=422661, long table border rendered incompletely (wrong coordinate conditioning in gfxRect), r+sr=roc 2008-03-18 13:30:16 -07:00
vladimir@pobox.com
f8a13c0c1d b=421422, cairo upgrade ; r=me 2008-03-14 20:44:23 -07:00
pavlov@pavlov.net
5afad8f2fa bug 396315. Fixing type1 fonts on Windows. r=vlad 2008-03-14 16:02:32 -07:00
dholbert@cs.stanford.edu
9a1e61b815 Backing out Bug 417356, due to pagination reftest failures. 2008-03-14 01:50:13 -07:00
jdaggett@mozilla.com
30803fce39 Bug 408965. Cmaps for fonts with Unicode-platform format-12 cmaps are not read (patch by Jjgod Jiang). r+sr=stuart 2008-03-14 01:35:35 -07:00
dholbert@cs.stanford.edu
2f86ee574d Bug 417356: Define & use "UnwriteableMargin" PrintSettings pref, to make Linux printing work more like Mac printing (keeping us from printing right up against the edge of the page) r=ventron sr=roc a=blocking1.9+ 2008-03-14 00:48:04 -07:00
pavlov@pavlov.net
78178bc5a7 bug 420675. shouldn't be bolding weight 500. r=vlad 2008-03-13 23:17:25 -07:00
masayuki@d-toybox.com
2d15463f40 Bug 390901 CJK - font-name is not recognised correctly in preferences p=me+jdagett(mac part)+kerlt(fontconfig part) r=jdagett+me+stuart+mconnor b1.9=stuart 2008-03-13 03:32:50 -07:00
pavlov@pavlov.net
8cbc9af075 bug 396315. get type1 fonts fonts mostly displaying correctly. (also fixes bug 410801. use postscript opentype fonts for fallback) r=vlad 2008-03-12 21:16:05 -07:00
pavlov@pavlov.net
c659fbf564 bug 396315. get type1 fonts fonts mostly displaying correctly. (also fixes bug 410801. use postscript opentype fonts for fallback) r=vlad 2008-03-12 21:15:24 -07:00
masayuki@d-toybox.com
dfeff6fa58 Bug 417014 Need blacklist system for underline offset adjusting of CJK fonts which have wrong underline offset r=roc+stuart, sr=roc, b1.9=stuart 2008-03-12 19:36:58 -07:00
reed@reedloden.com
be5cf144bf Bug 385516 - "Console is spewed with WARNING: empty langgroup" (Add default constructor to gfxFontStyle and use it) [p=wasti.redl@gmx.net (Sebastian Redl) r=stuart a1.9=damons] 2008-03-12 03:52:58 -07:00
jruderman@hmc.edu
baa46a25a7 Add crashtests 2008-03-11 17:42:51 -07:00
blassey@mozilla.com
6cc9d5a4ed backing out: switching narrow char system calls to wide char in windows b=418703 2008-03-11 15:46:26 -07:00
blassey@mozilla.com
ff89c4a3fb switching narrow char system calls to wide char in windows b=418703 r=bsmedberg r=dougt also looked at by stuart and roc a=beltzner and a=damon 2008-03-11 14:49:53 -07:00
karlt+@karlt.net
72d5e5247b Bug 421955. combining mark at start of text run rendered as NUL hex box or garbage. r=roc, a1.9=damons 2008-03-11 00:04:31 -07:00
roc+@cs.cmu.edu
b85eb999a0 Bug 403181. Pass the desired source rectangle for background images down into nsThebesImage and ensure we don't sample outside it. Back out a bad pixman patch that caused regressions, and adjust image encoding tests so they don't depend on the regression. Also switchs some reftests to quirks mode so that the 1-appunit width of <br>s doesn't bite us. r=vlad,sr=dbaron 2008-03-09 14:55:05 -07:00
roc+@cs.cmu.edu
17ebdab033 Backing out Bug 403181. JPEG encoding test failure :-( 2008-03-07 01:28:34 -08:00
roc+@cs.cmu.edu
2c9f274033 Bug 403181. Various fixes to image rendering. Most importantly, we track the desired subimage of a CSS background image and ensure we don't sample outside it. r=vlad,sr=dbaron 2008-03-07 00:34:12 -08:00
vladimir@pobox.com
c325e922a7 b=415854, make single-pixel optimized images release memory; patch from joe@drew.ca; r+sr=vlad 2008-03-05 22:51:13 -08:00
jdaggett@mozilla.com
48755a2e3d Bug 421135. Fix typo in setting of mLastPrefFirstFont. r+sr=vlad 2008-03-05 17:47:33 -08:00
blassey@mozilla.com
81d841c1fc backing out b=418703, caused test 40118 to fail on WINNT 5.2 qm-win2k3-01 dep unit test tinderbox 2008-03-05 14:56:43 -08:00
blassey@mozilla.com
dfd26f92ec switching windows narrow char system calls to wide char b=418703 r=bsmedberg a=beltzner 2008-03-05 13:39:29 -08:00
jdaggett@mozilla.com
8958236208 Bug 420822. Missing 500 weight font should fallback to lighter weights. r+sr=stuart 2008-03-04 02:24:32 -08:00
roc+@cs.cmu.edu
d5b5fd63c2 Backing out 403181 again 2008-03-04 01:36:07 -08:00
roc+@cs.cmu.edu
ffb68f7a15 Bug 403181. Track which subimage of an image we want to draw and copy it to a temporary surface if necessary to prevent sampling of pixels outside the subimage when zooming. Also, enable EXTEND_PAD or SetFilter(0) if the context has a transformation that's not a simple translation, since that might induce cairo to sample pixels outside the source (sub)image. r=vlad,sr=dbaron 2008-03-04 00:21:34 -08:00
roc+@cs.cmu.edu
9c465b97d7 Bug 419095 crashtest 2008-03-03 18:42:11 -08:00
roc+@cs.cmu.edu
565680d313 Crashtest for bug 416637 2008-03-03 18:37:35 -08:00
jdaggett@mozilla.com
26bbebf648 Bug 419757. Cache codepoints for which no font matches on windows. r+sr=stuart 2008-03-03 18:34:05 -08:00
roc+@cs.cmu.edu
e0b05b33e9 Bug 416637. There might be some skipped characters before standalone combining marks at the start of a textrun. r=vlad 2008-03-03 18:30:20 -08:00
joshmoz@gmail.com
b903b64b94 always link against cocoa framework on Mac OS X, cocoa exception wrapping in xpcom file io. b=419392 r=bent sr=roc a=beltzner 2008-02-29 15:24:53 -08:00
jdaggett@mozilla.com
4bcebb89c2 Bug 419370. Allow single face font families, specified in a pref setting. r+sr=stuart 2008-02-26 00:00:44 -08:00
roc+@cs.cmu.edu
dc2d890514 Bug 376375. Use Translate so we fill the right area with theme drawing after alpha recovery. r=vlad 2008-02-24 17:24:41 -08:00
roc+@cs.cmu.edu
40806d6491 Bug 418754. Fix Mac clustering... we shouldn't set a glyph using SetSimpleGlyph if it's not the start of a cluster. Also fixes an indexing error in ligature detection. r=jdaggett,a=beltzner 2008-02-21 17:12:41 -08:00
jdaggett@mozilla.com
714b2d84ec Bug 417444. Load in other font family names lazily to avoid doing expensive name table reads at startup. Now with no-leak technology. r+sr=roc 2008-02-20 18:46:01 -08:00
jdaggett@mozilla.com
b25c80c745 Bug 417444. Backing out due to leakage. 2008-02-20 16:35:26 -08:00
jdaggett@mozilla.com
4f2e1c05b0 Bug 417444. Load in other font family names lazily to avoid doing expensive name table reads at startup. r+sr=roc 2008-02-20 15:57:32 -08:00
reed@reedloden.com
546fc74bad Bug 395983 - "Duplicated Flash menus using r60(+) of Flash player" (do native drawing instead) [p=kinetik@flim.org (Matthew Gregan) r=vlad sr=roc a=blocking1.9+] 2008-02-20 03:33:27 -08:00
jag@tty.nl
dd268604cd Bug 416998: Fix the order of member variable initializers for a few constructors. sr=bz, a=schrep 2008-02-18 23:36:50 -08:00
jag@tty.nl
ee324720df Bug 418026: Unconditionally include prio.h and prbit.h in gfxColor.h. sr=dbaron, a=schrep 2008-02-18 23:07:01 -08:00
jag@tty.nl
05cdb6aefe Bug 73353: Clean up our MODULE/REQUIRES story. rs=dbaron, a=brendan 2008-02-18 00:50:04 -08:00
karlt+@karlt.net
0407c4284f back out gfxFontGroup::MakeTextRun with individual words. b=416725, due to performance regression on Windows. 2008-02-17 15:29:03 -08:00
karlt+@karlt.net
b336fb5a00 gfxFontGroup::MakeTextRun with individual words. b=416725, r=roc 2008-02-17 13:43:23 -08:00
mats.palmgren@bredband.net
a6b5e4e54a Some broken fonts specify a negative subscript offset, use the absolute value for compat reasons. b=410917 r=vladimir sr=pavlov a=beltzner 2008-02-16 18:44:12 -08:00
masayuki@d-toybox.com
6b94fee930 Bug 402524 Need to correct the Metrics for fonts in XP level r=pavlov, b1.9=vlad 2008-02-15 13:31:38 -08:00
jdaggett@mozilla.com
a7f0ea8a34 Bug 416062. Test all faces for a given codepoint, not just the first one. r+sr=roc 2008-02-14 21:12:32 -08:00
pavlov@pavlov.net
3b2805a16b bug 407462. CJK perf issue due to Uniscribe. Fast path around it when we know we can. r=roc 2008-02-14 20:50:15 -08:00
karlt+@karlt.net
e848502d11 don't pango_font_get_metrics with a NULL language. b=414692 r=pavlov 2008-02-13 01:09:46 -08:00
masayuki@d-toybox.com
91ba1601b0 Bug 333126 Bold/Italic text isn't displayed as bold/italic with cairo-gtk2 build if the font is synthesis font r=karlt, b1.9=mtschrep 2008-02-12 02:39:23 -08:00
jdaggett@mozilla.com
71ed653f99 Bug 416232. Add better error checking when reading in font name table. r+sr=roc 2008-02-12 01:31:36 -08:00
jdaggett@mozilla.com
8c119d621c Bug 361986. Exclude complex script codepoints for fonts that lack AAT morphing data. r=vlad,smontagu, sr=pavlov 2008-02-11 23:23:44 -08:00
karlt+@karlt.net
6e342b0b1e Bug 413050 - call cairo_debug_reset_static_data in system cairo on shutdown r=pavlov 2008-02-11 22:47:40 -08:00
karlt+@karlt.net
162beb87e9 Bug 414649 - wrong ui font (serif vs sans). Remove FindGenericFontFromStyle. r=pavlov 2008-02-11 22:43:26 -08:00
jdaggett@mozilla.com
bb4342ff9a Bug 396732. Cache codepoints with no fonts to avoid repeated system-wide font lookup. r+sr=vlad 2008-02-11 21:38:38 -08:00
jdaggett@mozilla.com
512d8be76b Bug 409342. Cache the last pref font looked up. r=vlad,pavlov, sr=pavlov 2008-02-11 20:57:57 -08:00
jruderman@hmc.edu
35b7fb5070 Bug 408746 is marked as fixed, so let's re-enable this crashtest. 2008-02-10 04:46:27 -08:00
masayuki@d-toybox.com
812ad80c2d Bug 415595 Use nsIPrefLocalizedString for intl.accept_languages in gfxWindowsFonts.cpp r=pavlov, b1.9=mtschrep 2008-02-09 10:47:15 -08:00
karlt+@karlt.net
4fd5a5e57e use FC_PIXEL_SIZE instead of pango_font_describe_with_absolute_size b=414239 r+sr=roc 2008-02-07 14:17:50 -08:00
jag@tty.nl
2d72a60803 Bug 414971: Mingw build error: `PR_ROTATE_RIGHT32' was not declared in this scope. r=wtc, sr=pavlov, a=mtschrep When using macros from prbit.h, don't expect others to include it for you. 2008-02-07 00:15:50 -08:00
reed@reedloden.com
65374de9cd Bug 406376 - "Firefox generating PostScript Level 3 code, instead of Level 2 one (was: Printing graphics prints a solid black box)" (Use Level 2) [p=ventnor.bugzilla@yahoo.com.au (Michael Ventnor) r+sr=roc a=blocking1.9+] 2008-02-06 21:26:50 -08:00
vladimir@pobox.com
5533ef53f6 b=414685, optimize mac image decoding and rendering ; r=stuart 2008-02-05 22:48:47 -08:00
jruderman@hmc.edu
12bb30beb0 Add crashtest 2008-02-03 21:56:57 -08:00
jdaggett@mozilla.com
b9f13584e1 Bug 409342. Handle pref lang array correctly. r+sr=pavlov 2008-01-31 00:41:09 -08:00
jdaggett@mozilla.com
efccb7f6b0 Bug 409342. Cache pref font lists per lang group during font matching. r+sr=pavlov 2008-01-30 16:23:36 -08:00
jag@tty.nl
40df5467f9 Bug 413143: trunk is broken(sigbus) on SPARC since 20071221. r/sr=pavlov, a=beltzner Unaligned 32-bit memory reads cause a sigbus on SPARC. Turns out that fixing this also gets us a little performance boost on other platforms because we're now mostly doing aligned 32-bit reads. 2008-01-29 22:22:23 -08:00
mozilla@weilbacher.org
1069bee8f5 [OS/2] Bug 394412: on the way to be able to print through cairo 2008-01-29 16:16:19 -08:00
jdaggett@mozilla.com
875ea51cfa Bug 411090. Bail reading cmap when table offset is beyond the end of the table. r+sr=pavlov 2008-01-29 14:12:11 -08:00
jdaggett@mozilla.com
cb1d2d4777 Bug 400717. Explicitly set NSUnitalicFontMask and NSUnboldFontMask font traits to avoid 10.5 inconsistency. r+sr=vlad 2008-01-29 13:41:46 -08:00
gavin@gavinsharp.com
2d1ec8a5c9 Bustage fix from bug 404310 by John Daggett <jdaggett@mozilla.com>, r=josh, sr=stuart, a=Mossop (avoid enum conflict with 10.5 SDK) 2008-01-29 09:25:37 -08:00
jdaggett@mozilla.com
5cdba3ea06 Bug 404310. Restructuring gfxQuartzFontCache for faster startup, better lookup speed. r=vlad, sr=pavlov 2008-01-28 22:00:55 -08:00
vladimir@pobox.com
61b709983c re-landing; b=412396, speed up mac image rendering while images are being loaded, r=stuart 2008-01-28 11:05:44 -08:00
roc+@cs.cmu.edu
dd63d34fee Bug 410728. gfxTextRunWordCache should not cache words that start with a combining mark (words whose first character clusters with a preceding space). r=vlad 2008-01-28 09:35:44 -08:00
roc+@cs.cmu.edu
52aa6b6bdd Bug 410728. gfxWindowsFonts should not start a font-change run in the middle of a surrogate pair. r=pavlov 2008-01-28 09:30:18 -08:00
vladimir@pobox.com
ab954de041 backing out 412396 in an attempt to fix linux orange 2008-01-27 19:04:40 -08:00
vladimir@pobox.com
dc58eb9308 b=412396, jpeg decoding/painting slower on trunk vs. branch while loading; r=stuart 2008-01-27 15:53:24 -08:00
jwatt@jwatt.org
30ec885b7d Fixing bug 272885. Disable rendering of some elements when their width or height is zero. r=tor@acm.org, sr=vladimir@pobox.com, a1.9=mtschrep@gmail.com 2008-01-27 12:39:27 -08:00
longsonr@gmail.com
c2e3385277 Bug 377085 - line svg element getBBox() returns bad rect. r+sr=tor,a1.9=blocking1.9+ 2008-01-27 06:55:53 -08:00
karlt+@karlt.net
4ac54369b7 Restore gfxPangoFontCache because of Tp slip b=401988. 2008-01-27 02:27:08 -08:00
karlt+@karlt.net
eaf743b058 Remove gfxPangoFontCache as this doesn't include language in the key, and gfxFontCache should do this caching (with expiration). b=401988 r=pavlov. 2008-01-27 01:24:04 -08:00
karlt+@karlt.net
1a4597219a Bug 401988 - gfxPangoFontGroup::CreateGlyphRunsItemizing must use gfxPangoFont corresponding to the PangoFont from pango_shape (wrong glyphs selected when falling back to fonts of different style). Provide fontconfig with information re requested font even when non-existant. Map FONT_WEIGHT_NORMAL to Regular not Medium weight fonts. r=pavlov, sr=roc. 2008-01-26 23:37:29 -08:00
roc+@cs.cmu.edu
40f90b587f Backing out 410728 to fix Windows orange 2008-01-26 16:44:24 -08:00
roc+@cs.cmu.edu
9a77a46d78 Bug 410728 crashtest 2008-01-26 14:59:19 -08:00
roc+@cs.cmu.edu
03fe06e0ca Bug 410728. Detect words that start with a combining mark, and don't cache them. r=vlad 2008-01-26 14:50:27 -08:00
mozilla@weilbacher.org
a47fdbbc92 Bug 376790: remove support for non-cairo GFX ports from configure.in, r=ted.mielczarek, a=mtschrep 2008-01-23 00:27:47 -08:00
karlt+@karlt.net
27f1e406c3 Touch ups to gfxFontCache, for gfxFonts that are added twice and for those that are not accessed through AddNew() and Lookup(). b=401988, r+sr=roc 2008-01-21 19:11:46 -08:00
jdaggett@mozilla.com
dea5368f3f Bug 412859. Use the first group font instead of the previous font when doing system-wide font fallback. r+sr=roc 2008-01-20 22:36:47 -08:00
roc+@cs.cmu.edu
ccfb107567 Bug 412859. Some code to dump the contents of the textrun word cache. debug only. r=pavlov 2008-01-20 17:23:50 -08:00
jruderman@hmc.edu
cdedbb91af Add crashtest 2008-01-20 16:18:38 -08:00
alfred.peng@sun.com
c845698fff Bustage fix for bug 405268. 2008-01-19 19:28:17 -08:00
alfred.peng@sun.com
4f41cbcc5d Bug 405268. Crash [@ gfxPangoFontGroup::CreateGlyphRunsItemizing gfxPangoFonts.cpp:1153]. r=mozbugz@karlt.net sr=pavlov a=blocking1.9+ 2008-01-19 19:01:18 -08:00
karlt+@karlt.net
4fa7f7520b Restore gfxPangoFontCache to see if this resolves Tp slip from previous change. 2008-01-18 19:20:07 -08:00
karlt+@karlt.net
92aa786152 Don't store PangoFontDescription and PangoContext in gfxPangoFonts, and remove gfxPangoFontCache. b=401988 r=pavlov 2008-01-18 17:43:26 -08:00
dolske@mozilla.com
268142e62e Bug 412378 - crash in gfxPlatformGtk::CreateOffscreenSurface() when using xpcshell. r=stuart, a=schrep 2008-01-18 15:50:24 -08:00
jag@tty.nl
5db2fcd369 Bug 406580: Faster copying of RGB pixel data For non-Windows, use ntohl() which should compile down to an inline bswap or equivalent. On Windows use _byteswap_ulong() or for MinGW a generic fast implementation. r=pavlov, a=blocking 2008-01-16 20:06:40 -08:00
mats.palmgren@bredband.net
03f25e4e40 MakeSpaceTextRun() should short-circuit zero-sized fonts. b=407352 r+sr=roc a=dsicore 2008-01-13 23:05:19 -08:00
mats.palmgren@bredband.net
880cf39677 Crash test for bug 407842. 2008-01-12 20:09:56 -08:00
masayuki@d-toybox.com
40e5e6037e Bug 410748 Control borders are not drawn correctly r+sr+a=roc 2008-01-12 09:30:27 -08:00
roc+@cs.cmu.edu
a4beeb6a9d Bug 410228. Fix crash when an uppercased szlig has a font-change in the middle of it, r=smontagu 2008-01-09 15:33:34 -08:00
roc+@cs.cmu.edu
ad24c0e367 Bug 411334. Try optimistically to not use a temporary group for SVG drawing on Mac. If drawing fails we try again with a temporary group. r+sr=vlad 2008-01-09 14:53:59 -08:00
jdaggett@mozilla.com
90a281b07c Bug 410954. Don't add fallback fonts to the font group list. Add better weight matching. r+sr=pavlov 2008-01-09 00:51:44 -08:00
masayuki@d-toybox.com
839f53ca4a a part of bug 410748 (not fixes it) r+sr=roc, a=mtschrep 2008-01-06 23:00:49 -08:00
roc+@cs.cmu.edu
906552a37c Fixing bustage again 2008-01-06 17:32:23 -08:00
roc+@cs.cmu.edu
1f45a1e453 Fixing bustage 2008-01-06 17:14:34 -08:00
roc+@cs.cmu.edu
df70c1d8dd Bug 408182. Turn off Gfx pixel-snapping for print contexts. r=vlad 2008-01-06 16:50:18 -08:00
jruderman@hmc.edu
30aee9b468 Add crashtests 2008-01-06 16:31:45 -08:00
jruderman@hmc.edu
66dfb37909 Add crashtest. 2008-01-06 16:26:21 -08:00
jruderman@hmc.edu
96aba0b23f Add a crashtest. 2008-01-06 16:19:32 -08:00
jruderman@hmc.edu
f8c0bcc5ca Add crashtest 2008-01-06 16:16:50 -08:00
jruderman@hmc.edu
ed9f2ad04d Adding crashtest 2008-01-06 16:15:08 -08:00
jruderman@hmc.edu
b5742c3731 Add crashtest 2008-01-06 15:35:55 -08:00
jruderman@hmc.edu
4306bdab72 Adding crashtest 2008-01-06 15:33:31 -08:00
jruderman@hmc.edu
a839548755 Add crashtest 2008-01-06 15:05:40 -08:00
reed@reedloden.com
ea9e5ead9e Bug 383166 - "stack-allocate gfxContext where possible" [p=alfredkayser@nl.ibm.com (Alfred Kayser) r+a1.9=stuart] 2007-12-31 20:42:49 -08:00
reed@reedloden.com
286159a6e0 Back out Alfred Kayser's patch from bug 383166 due to Ts regression. 2007-12-31 15:41:12 -08:00
reed@reedloden.com
b36e276526 Bug 383166 - "stack-allocate gfxContext where possible" [p=alfredkayser@nl.ibm.com (Alfred Kayser) r+a1.9=stuart] 2007-12-31 12:46:27 -08:00
jdaggett@mozilla.com
8527665bcb Bug 396137. Use Windows cmap font matching in place of ATSUI font matching. r+sr=pavlov 2007-12-27 17:28:26 -08:00
dolske@mozilla.com
0758a3cd45 Bug 409381 - gif images (with transparency) display corrupted. p=swsnyder@insightbb.com, r,sr=vlad, a=blocking-1.9+ 2007-12-23 21:41:18 -08:00
reed@reedloden.com
3ffd210da6 Bug 406580 - "Faster copying of RGB pixel data" (Fix the build on FreeBSD) [p=reg@freebsd.org (Jeremy Lea) r+a1.9=stuart] 2007-12-21 22:17:21 -08:00
reed@reedloden.com
755cb4526a This doesn't seem to compile on Mac. 2007-12-21 02:39:33 -08:00
reed@reedloden.com
2da7d2d38d Bug 406580 - "Faster copying of RGB pixel data" (Where Alpha=0xFF, keep RGB values contiguous in pixel copying) [p=swsnyder@insightbb.com (Steve Snyder) r+a1.9=stuart] 2007-12-21 02:26:31 -08:00
roc+@cs.cmu.edu
d7b6a2218b Bug 407761 crashtest 2007-12-20 23:28:53 -08:00
roc+@cs.cmu.edu
d472bd63a1 Bug 407761. Don't try to get/use extents for missing glyphs, and tolerate glyph extents that might be missing due to OOM. r=vlad 2007-12-20 23:09:50 -08:00
karlt+@karlt.net
0c4c6297d7 backing out mMetrics->xHeight test in revision 1.161 to try to fix MozillaAliveTest. 2007-12-19 14:16:46 -08:00
karlt+@karlt.net
8bb3c41bca changing floats to double to try to fix MozillaAliveTest. 2007-12-19 13:55:35 -08:00
karlt+@karlt.net
70144e2d9f Bug 407415 - NaNs in gfx*Font with font-size:0 and font-size-adjust. r=roc a=schrep 2007-12-19 12:37:49 -08:00
jruderman@hmc.edu
a7c2449462 Skip this test on Linux because it is causing crashes for some users (but oddly, not on Tinderbox). See bug 408746. 2007-12-19 10:24:13 -08:00
karlt+@karlt.net
6a3d8d8c9a Bug 405393 - ZWNJ and ZWJ unicode characters are failing to render correctly. r=roc. 2007-12-18 13:50:03 -08:00
mats.palmgren@bredband.net
6e5b761062 Crashtests for bug 404112. 2007-12-17 02:15:04 -08:00
mats.palmgren@bredband.net
9a32aa3c42 Don't ask Pango for metrics of zero size fonts (it crashes some versions of libpango), instead set all the metrics to zero. b=404112 r=mozbugz@karlt.net sr=pavlov@pavlov.net a=blocking1.9 2007-12-17 01:25:25 -08:00
jruderman@hmc.edu
c53967f5ad Add more crashtests 2007-12-16 13:58:14 -08:00
jruderman@hmc.edu
6417b0d8c4 Add crashtests 2007-12-16 13:54:13 -08:00
jruderman@hmc.edu
f98b659225 Add crashtest 2007-12-15 22:02:11 -08:00