Граф коммитов

472 Коммитов

Автор SHA1 Сообщение Дата
Jonathan Kew 674676fba3 Bug 1118943 - Ensure mFUnitsConvFactor is set up properly for vertical fonts in the FT2 backend. r=smontagu 2015-01-07 23:42:40 +00:00
Jonathan Kew 16def44035 Bug 1120102 - Use absolute value of vhea descender field, because fonts differ in the sign of the coordinate system they assume. r=smontagu 2015-01-12 14:24:05 +00:00
Jonathan Kew e056d920d0 Bug 1062108 - Don't increase glyph advances when applying fake-bold to a fixed-pitch font. r=jdaggett 2015-01-08 12:51:00 +00:00
Jonathan Kew 82898bfa4d Bug 1095334 - Adjust ascent/descent to provide centered vertical baseline when reading 'vhea' table. r=smontagu 2015-01-06 20:56:02 +00:00
Jonathan Kew ff9f031360 Bug 1115916 - Improve synthetic vertical metrics for fonts that don't have actual vhea/vmtx tables. r=smontagu 2015-01-06 20:56:02 +00:00
Jonathan Kew 4fa5c65360 Bug 1116480 - gfxTextRun::Measure needs to account for fake-italic transform when returning the bounding box. r=roc 2014-12-31 22:35:40 +00:00
Jonathan Kew 3478d8e504 Bug 1108616 - part 3 - Only do language-specific shaping when the language was explicitly tagged. r=jdaggett 2014-12-23 12:50:10 +00:00
Jonathan Kew a896eab424 Bug 1108616 - part 2 - Add an explicitLanguage field to gfxFontStyle, and pass it down from callers. r=dbaron 2014-12-23 12:50:10 +00:00
Jonathan Kew 644149da01 Bug 1102406 - Ensure conversion factor for font units is set up before trying to read vertical metrics. r=jdaggett 2014-11-27 09:31:15 +00:00
Jonathan Kew 34fea182cd Bug 1093553 - Improve handling of line-height metrics, block ascent, etc., in vertical writing mode. r=smontagu 2014-11-13 08:58:06 +00:00
Jonathan Watt d6d15a2f78 Bug 1093811 - Convert the gfxFont::GetGlyphWidth() virtual method to take a Moz2D DrawTarget instead of a Thebes gfxContext. r=jfkthame 2014-11-10 21:41:41 +00:00
Jonathan Watt c29761b789 Bug 1093813 - Remove the gfxContext argument from gfxHarfBuzzShaper's GetGlyphHAdvance, GetGlyphVAdvance and GetGlyphVOrigin methods. r=jfkthame 2014-11-10 21:41:41 +00:00
John Daggett 6f795700cb Bug 475891 - support unicode-range when matching userfonts (non-linux). r=jfkthame 2014-11-06 13:42:50 +09:00
Jonathan Kew f4f29192d3 Bug 1090869 - Don't collect output glyphs when checking for features involving <space>. r=jdaggett 2014-10-30 09:54:22 +00:00
Jonathan Watt 579842c323 Bug 1089177, part 2 - Port gfxFontMissingGlyphs to Moz2D. r=mattwoodrow 2014-10-28 14:40:42 +00:00
Markus Stange defd3c048d Bug 1055634 - Propagate font smoothing background colors to layers. r=roc 2014-10-24 18:32:23 +02:00
Jonathan Kew 0e773b6fc0 Bug 1081867 - Convert textrun metrics to physical coordinates before merging with visual-overflow region. r=smontagu 2014-10-16 09:40:19 +01:00
Carsten "Tomcat" Book a20685ff2b Backed out changeset 1abddb50ed34 (bug 1081867) for bustage on a CLOSED TREE 2014-10-16 11:42:11 +02:00
Jonathan Kew 1428512193 Bug 1081867 - Convert textrun metrics to physical coordinates before merging with visual-overflow region. r=smontagu 2014-10-16 09:40:19 +01:00
Jonathan Kew 6fea005a92 Bug 1082083 - Apply division to the y-coordinate only, not to the point as a whole. r=jdaggett 2014-10-14 20:56:08 +01:00
Eric Rahm 8d715a7fe4 Bug 806819 - Part 3: Remove redundant FORCE_PR_LOG entries. r=ehsan 2014-10-08 13:17:32 -07:00
Jonathan Kew c765f6c3f8 Bug 1074735 pt 1 - Use more sensible values for underline and strikeout position in vertical font metrics. r=smontagu 2014-10-08 10:32:53 +01:00
Carsten "Tomcat" Book 0c5e86e0fc Backed out changeset 1632a36342d4 (bug 1074735) 2014-10-08 13:06:56 +02:00
Jonathan Kew 5194872bdc Bug 1074735 pt 1 - Use more sensible values for underline and strikeout position in vertical font metrics. r=smontagu 2014-10-08 10:32:53 +01:00
Wes Kocher 445e1466e9 Backed out 5 changesets (bug 806819) for WinXP test failures on a CLOSED TREE
Backed out changeset 009ae35b0c67 (bug 806819)
Backed out changeset 5a57f87f5061 (bug 806819)
Backed out changeset f06cd735b5b3 (bug 806819)
Backed out changeset e25a2a8d4af4 (bug 806819)
Backed out changeset 70a167982c3f (bug 806819)
2014-10-06 16:32:50 -07:00
Eric Rahm 80d2b8bba6 Bug 806819 - Part 3: Remove redundant FORCE_PR_LOG entries. r=ehsan
--HG--
extra : rebase_source : c96eea1c12ea8c19314393f0e8b4b57a4316a61d
2014-10-06 13:08:20 -07:00
Jonathan Kew 934e56f8da Bug 902762 pt 4 - Support for orientation:sideways-right when drawing vertical textruns. r=jdaggett 2014-10-01 20:25:49 +01:00
Jonathan Kew 7e8dfb9a44 Bug 902762 pt 2 - Support for vertical textruns and fonts through gfxTextRun::Draw. r=jdaggett 2014-10-01 20:25:48 +01:00
Jonathan Kew b2c88c5dfe Bug 902762 pt 1 - Pass a 'vertical' flag to font shapers, and support vertical shaping through harfbuzz. r=jdaggett 2014-10-01 20:25:48 +01:00
Jacek Caban 0bba571624 Bug 1057331 - mingw fixup (const char16_t*/char16ptr_t mismatch). 2014-10-01 10:58:57 +02:00
Jonathan Kew c5e1a54d59 Bug 1065002 pt 1.3 - Add an Orientation parameter to gfxFont::GetMetrics and dispatch to horizontal or vertical as needed. r=jdaggett 2014-09-30 07:38:26 +01:00
Jonathan Kew af4fdc577c Bug 1065002 pt 1.2 - Add CreateVerticalMetrics to gfxFont, to read/synthesize metrics for vertical layout. r=jdaggett 2014-09-30 07:38:06 +01:00
Jonathan Watt a6a8b844ba Bug 1073964 - Pass a const DrawTarget* through to nsSVGPaintServerFrame::GetPaintServerPattern so that it can create a pattern of the appropriate type. r=Bas 2014-09-29 14:15:19 +01:00
Georg Fritzsche 83f0c5bfb7 Bug 1067989 - Unify some more binary search uses. r=waldo 2014-09-17 15:46:24 +02:00
Jonathan Kew 5cadcfeab8 bug 1057331 - add orientation flags to gfxShapedText/gfxTextRun and to glyph runs within the text run, and split glyph runs on orientation changes. r=jdaggett 2014-09-16 12:25:45 +01:00
Jonathan Kew 50b0ff2a5d bug 1066043 - split gfxFont.cpp and .h into more manageably-sized pieces. r=jdaggett
--HG--
rename : gfx/thebes/gfxFont.cpp => gfx/thebes/gfxFontEntry.cpp
rename : gfx/thebes/gfxFont.h => gfx/thebes/gfxFontEntry.h
rename : gfx/thebes/gfxFont.cpp => gfx/thebes/gfxGlyphExtents.cpp
rename : gfx/thebes/gfxFont.h => gfx/thebes/gfxGlyphExtents.h
rename : gfx/thebes/gfxFont.cpp => gfx/thebes/gfxTextRun.cpp
rename : gfx/thebes/gfxFont.h => gfx/thebes/gfxTextRun.h
2014-09-16 10:58:12 +01:00
Jonathan Watt 2a0767dbda Bug 1064084, part 4 - Convert all consumers of gfxContext::IdentityMatrix() to use gfxContext::SetMatrix(). r=Bas 2014-09-11 07:57:39 +01:00
Jonathan Watt 93e59c8bd5 Bug 1064084, part 1 - Convert all consumers of gfxContext::Translate() to use gfxContext::SetMatrix()/Multiply(). r=Bas 2014-09-11 07:57:38 +01:00
John Daggett 123c797bde Bug 1062058 part 3 - make userfont entry a container of the platform font entry. r=heycam 2014-09-08 16:23:20 +09:00
John Daggett 53967d717d Bug 1062058 part 2 - rename userfont classes and adjust flags. r=heycam 2014-09-08 16:23:20 +09:00
Jonathan Kew 459e4b0582 bug 983985 - remove fake-italic skew from the drawTarget's matrix before rendering a hexbox. r=bas 2014-08-30 17:29:06 +01:00
John Daggett f7c74c5ba8 Bug 931040 - add access to hidden system fonts on OSX. r=jfkthame 2014-08-19 21:46:17 +09:00
Ehsan Akhgari 93ec08d11c Bug 1050610 - Fix more bad implicit constructors in gfx; r=roc
--HG--
extra : rebase_source : 5c6b62dbed81018370ce274e1913620ffb0ff7a2
2014-08-07 21:17:30 -04:00
Nicholas Nethercote a7cf4142b4 Bug 1050009 - Initialize pldhash tables with a length, not a capacity. r=roc.
* * *
imported patch rm-dummy-params

--HG--
extra : rebase_source : c25987eb11bae197218d5fc53b77def19afa36ac
2014-08-06 06:31:21 -07:00
Andrew McCreight 228d194059 Bug 1046281 - Use the simpler version of nsTHashtable memory reporters. r=njn 2014-08-05 13:27:41 -07:00
Jonathan Kew 48f8e6a65e bug 1044706 - handle temporary contextPaint as part of fontParams. r=smontagu 2014-07-29 11:58:15 +01:00
Carsten "Tomcat" Book e5d79023a1 Backed out changeset c8d0a8cf50a1 (bug 1044706) for Reftest Failures 2014-07-29 13:41:42 +02:00
Jonathan Kew 1f41596c73 bug 1044706 - handle temporary contextPaint as part of fontParams. r=smontagu 2014-07-29 11:58:15 +01:00
Jonathan Kew 3a3ee6ed8a bug 1037340 pt 2 - hoist the setup of some unvarying parameters from gfxFont::Draw up to gfxTextRun::Draw. r=jdaggett 2014-07-25 09:38:55 +01:00
Jonathan Kew d47b2363cc bug 1037340 pt 1 - refactor gfxFont::Draw for better maintainability. r=jdaggett 2014-07-25 09:38:44 +01:00
Jonathan Kew bce82c2cd4 Bug 1024804 followup - replace gfxFont::CalculateSubSuperSizeAndOffset with gfxFontStyle::AdjustForSubSuperscript. r=jdaggett 2014-07-11 22:37:27 +01:00
John Daggett 94caf2851e Bug 1024804 p2 - scan scriptrun for characters lacking variant glyphs. r=jfkthame 2014-07-22 09:02:48 +09:00
John Daggett 14c6cc4cc3 Bug 1024804 p1 - implement fallback for font-variant-position sub/superscript glyphs. r=jfkthame 2014-07-22 09:02:45 +09:00
Jonathan Watt 7b84e10be6 Bug 933019, part 4 - Remove code for handling Thebes backed gfxContext in gfxFont. r=Bas 2014-07-10 10:58:07 +01:00
Cameron McCormack e01446872c Bug 1031202 - Factor out gfxMixedFontFamily lookup/creation into a helper function. r=jdaggett 2014-07-09 17:08:55 +10:00
Carsten "Tomcat" Book 2d4e060456 Backed out changeset 30954594c1dd (bug 1031202) 2014-07-09 13:43:51 +02:00
Cameron McCormack 493349d4b5 Bug 1031202 - Factor out gfxMixedFontFamily lookup/creation into a helper function. r=jdaggett 2014-07-09 21:04:15 +10:00
Jonathan Kew c6ad2091d7 bug 1035323 - remove redundant null-checks in the DetailedGlyphStore code. r=jdaggett 2014-07-08 14:56:41 +01:00
Jonathan Kew 5a45201ffe bug 1034403 - update index to step past the second half of a surrogate pair. r=roc 2014-07-06 12:51:27 +01:00
Frédéric Wang 9e0eb3a436 Bug 961365 - Part 1: Add helper functions to access MATH constants and use them to get the AxisHeight. r=jfkthame 2014-07-01 23:29:00 -04:00
Jonathan Kew 68d2010cfd bug 1018551 - clean up redundancy in the font/shaper code. r=jdaggett 2014-05-31 08:12:40 +01:00
Masatoshi Kimura e6e3ddadf9 Bug 1018034 - Remove the "gfx.font_rendering.harfbuzz.scripts" pref. r=jfkthame 2014-05-31 15:11:29 +09:00
John Daggett acd3c4ca2c Bug 1029307 - remove subscript/superscript metrics. r=heycam 2014-06-28 15:40:36 +09:00
Geoff Brown 99eba27f48 Bug 456899 - Avoid assertion "forgot to short-circuit a text run with zero-sized font?"; r=jfkthame 2014-06-23 08:35:52 -06:00
John Daggett f62927140f Bug 961558 - remove smallCaps from gfxFontStyle. r=jfkthame 2014-06-23 12:09:17 +09:00
John Daggett b69e91abce Bug 961558 - add fallback support for font-variant-caps values. r=jfkthame 2014-06-23 12:09:16 +09:00
Jonathan Watt 6586dcffb2 Bug 1027763, part 2 - Make non-Moz2D callers of DrawTarget::GetType() call DrawTarget::GetBackendType() instead. r=Bas 2014-06-19 21:35:33 +01:00
Jonathan Kew 288baa3a79 bug 871453 - part 2 - support font-synthesis options through the platform-font-list backends. r=jdaggett 2014-06-19 08:08:58 +01:00
Jonathan Kew e83684913c bug 871453 - part 1 - pass the font-synthesis flags down to gfxFontStyle. r=jdaggett 2014-06-19 08:08:55 +01:00
Nicholas Nethercote aaf6fb2124 Bug 1010064 - Allow memory reports to be anonymized. r=bsmedberg.
--HG--
extra : rebase_source : 5eb756b17a97e751deb0f47e909fdb35533cb23b
2014-05-20 23:06:54 -07:00
Jonathan Kew 088699795b bug 985220 - remove the old GDI, Uniscribe and DWrite text-shaping code paths, as we now use HarfBuzz or Graphite for all shaping on Windows. r=jdaggett 2014-06-09 15:47:31 +01:00
John Daggett f782ee2f5a Bug 1022792 - treat -moz-fixed as monospace. r=heycam 2014-06-10 14:21:41 +09:00
Jonathan Kew fbe8c6fe21 backout changeset 59b2dd6b5048 (bug 985220) due to MS Sans Serif regression with Thai system locale (see bug 1020826). 2014-06-06 22:41:09 +01:00
Jonathan Kew 3022454dd2 backout changeset 48b74ab18f92 (bug 1018034) due to MS Sans Serif regression with Thai system locale (see bug 1020826). 2014-06-06 22:41:07 +01:00
Jonathan Kew f3e4b38e26 backout changeset 3e9d9aa535c7 (bug 1018551) due to MS Sans Serif regression with Thai system locale (see bug 1020826). 2014-06-06 22:41:04 +01:00
John Daggett 8259cc74f5 Bug 280443 p3 - use fontlist struct in gfx. r=roc,fredw 2014-06-06 15:09:23 +09:00
Jonathan Kew 38068abbd8 bug 1018551 - clean up redundancy in the font/shaper code. r=jdaggett on a CLOSED TREE 2014-05-31 08:12:40 +01:00
Carsten "Tomcat" Book 82f1d58585 Backed out changeset fd9518344a23 (bug 1018551) for crashes 2014-06-02 10:40:57 +02:00
Jonathan Kew ed41d90a09 bug 1018551 - clean up redundancy in the font/shaper code. r=jdaggett 2014-06-02 07:51:34 +01:00
Jonathan Kew 85f3fea947 bug 1014639 - part 0 - (preliminary cleanup) split GreekCasing out into its own file to reduce clutter in nsUnicharUtils.cpp. r=smontagu 2014-06-01 23:17:41 +01:00
Phil Ringnalda 3e5340dd29 Merge f-t to m-c 2014-05-31 20:31:07 -07:00
Victor Porof 9ce7e9c089 Bug 1007203 - Always add categories when pushing to the pseudostack, r=djvj 2014-05-23 17:12:29 -04:00
Masatoshi Kimura 41e75a3dbc Bug 1018034 - Remove the "gfx.font_rendering.harfbuzz.scripts" pref. r=jfkthame 2014-05-31 15:11:29 +09:00
Jonathan Kew 0d94ebb7d2 bug 985220: remove the old GDI, Uniscribe and DWrite text-shaping code paths, as we now use HarfBuzz or Graphite for all shaping on Windows. r=jdaggett 2014-03-19 12:27:44 +00:00
Jonathan Kew 24e9019170 bug 458634 part 2 - use 'smcp' feature in Graphite fonts if available. r=jdaggett 2014-05-28 11:35:14 +01:00
Jonathan Kew 142a69933c bug 458634 part 1 - use OpenType 'smcp' feature to implement small-caps if available in the font. r=jdaggett 2014-05-28 11:35:12 +01:00
Jonathan Kew 35a3de2e99 bug 1015603 part 5 - implement fake small-caps in gfx using a reduced-size clone of the font. r=roc 2014-05-26 14:23:32 +01:00
Jonathan Kew 18ab93cab6 bug 1015603 part 4 - revise internal APIs to pass pointer to text for the current script or font run rather than the entire textrun. r=roc 2014-05-26 14:23:31 +01:00
Jonathan Kew 45a42995d1 bug 1015603 part 3 - add a smallCaps field to gfxFontStyle, and pass it through from layout when creating gfxFontStyle records. r=roc 2014-05-26 14:23:31 +01:00
Makoto Kato d38288b73d Bug 889401 - Part 2. Render color glyph using COLR/CPAL. r=jfkthame 2014-05-26 19:07:24 +09:00
Birunthan Mohanathas 0e6f3a6562 Bug 869836 - Part 3: Use `Append('c')` instead of `AppendLiteral("c")`. r=ehsan 2014-05-22 06:48:51 +03:00
Eric Rahm 047f25416e Bug 1003479 - Fix incorrect usage of SizeOfIncludingThis and SizeOfExcludingThis functions. r=njn
--HG--
extra : rebase_source : 2d51e1fc1b642b0efa60cb4e25e8b142577e93d3
2014-05-01 10:37:54 -07:00
Jonathan Kew f84805d4da bug 992100 - mask out complex-script codepoints in fonts that lack the necessary layout tables. r=roc 2014-05-05 19:59:55 +01:00
Birunthan Mohanathas 5f1fde8824 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Frédéric Wang 937b8095f5 Bug 947650 - [sfnt metrics] prefer OS/2 sTypo* metrics to hhea ascent/descent if USE_TYPO_METRICS flag is set, and for OpenType Math fonts. r=jfkthame 2014-04-24 03:16:00 +02:00
Frédéric Wang b4f3bff93e Bug 1000370 - Call SetupCairoFont at the beginning of gfxFont::GetGlyphHAdvance. r=jfkthame
DONTBUILD
2014-04-23 14:12:31 -07:00
Ryan VanderMeulen b1acf34460 Backed out 3 changesets (bug 1000170, bug 1000370) for landing with the wrong patch author.
Backed out changeset a3f42079e69c (bug 1000370)
Backed out changeset e4e33370b648 (bug 1000170)
Backed out changeset bca2faf314bf (bug 1000170)
2014-04-23 14:20:54 -07:00
Brian Hackett fa23812389 Bug 1000370 - Call SetupCairoFont at the beginning of gfxFont::GetGlyphHAdvance. r=jfkthame 2014-04-23 14:12:31 -07:00
Frédéric Wang dd936cd2e4 Bug 407059 - Part 4: Use gfxHarfbuzzShaper::GetGlyphHAdvance() for math operators. r=jfkthame 2014-04-23 06:57:42 -07:00
Frédéric Wang e9daefe35d Bug 407059 - Part 1: Add a gfxMathTable class to read the MATH table. r=jfkthame 2014-04-23 06:57:42 -07:00