Jonathan Kew
2a3d1d4598
Bug 1454598 - part 4 - Disable font variations on macOS Sierra due to Core Text unreliability. r=jwatt
2018-04-25 14:03:44 +01:00
Jonathan Kew
c57f185cd9
Bug 1454598 - part 3 - Use WeightRange more extensively in place of FontWeight throughout user-font handling and font-entry creation, and handle Stretch and SlantStyle similarly. r=jwatt
2018-04-25 07:18:23 +01:00
Jonathan Kew
9872150acc
Bug 1454598 - part 2 - Allow variation fonts to record a weight range in gfxFontEntry, and update font-matching to handle ranges. r=jwatt
2018-04-25 07:18:23 +01:00
Jonathan Kew
13a7aab50e
Bug 1454598 - part 2.1 - For system-installed fonts, query FC_VARIABLE to determine if a face has variations rather than instantiating a FT_Face. r=lsalzman
2018-04-25 07:18:23 +01:00
Jonathan Kew
b19488bd47
Bug 1454598 - part 1 - Make gfxFcPlatformFontList::GetFTLibrary work before font system is fully up and running, so that the global FT_Library can be used during initialization of the font list itself. r=lsalzman
2018-04-17 21:45:29 +01:00
Jonathan Kew
7e27ba83c3
Backed out 4 changesets from bug 1454598 (26e036b1c703, bc910e36a7d7, bac001216577, 5af215d265b6) due to macOS 10.12 font issues.
2018-04-25 10:18:07 +01:00
Jonathan Kew
8489323f79
Bug 1454598 - part 3 - Use WeightRange more extensively in place of FontWeight throughout user-font handling and font-entry creation, and handle Stretch and SlantStyle similarly. r=jwatt
2018-04-25 07:18:23 +01:00
Jonathan Kew
6ca182d055
Bug 1454598 - part 2 - Allow variation fonts to record a weight range in gfxFontEntry, and update font-matching to handle ranges. r=jwatt
2018-04-25 07:18:23 +01:00
Jonathan Kew
c75bb6f48d
Bug 1454598 - part 2.1 - For system-installed fonts, query FC_VARIABLE to determine if a face has variations rather than instantiating a FT_Face. r=lsalzman
2018-04-25 07:18:23 +01:00
Jonathan Kew
8ff8fafa15
Bug 1454598 - part 1 - Make gfxFcPlatformFontList::GetFTLibrary work before font system is fully up and running, so that the global FT_Library can be used during initialization of the font list itself. r=lsalzman
2018-04-17 21:45:29 +01:00
Jonathan Watt
156c4af1ec
Bug 1436048: Use user defined types for font-stretch / font-style. r=jfkthame,jwatt
...
Co-authored-by: Emilio Cobos Álvarez <emilio@crisal.io>
MozReview-Commit-ID: 7ONYtICeAqb
2018-04-23 18:22:05 +02:00
Cosmin Sabou
dcacfcfc71
Backed out 2 changesets (bug 1454598) as requested by Mossop in developers channel. a=backout
...
Backed out changeset b673e87d6134 (bug 1454598)
Backed out changeset 072dc1504ce6 (bug 1454598)
2018-04-20 06:45:39 +03:00
Jonathan Kew
6f1e2a29b3
Bug 1454598 - part 2 - Allow variation fonts to record a weight range in gfxFontEntry, and update font-matching to handle ranges. r=jwatt
2018-04-19 13:28:13 +01:00
Jonathan Kew
6b0c3d90d8
Bug 1454598 - part 1 - Make gfxFcPlatformFontList::GetFTLibrary work before font system is fully up and running, so that the global FT_Library can be used during initialization of the font list itself.
2018-04-17 21:45:29 +01:00
Jonathan Kew
94238d9823
Bug 1452973 - Update NS_FONT_STRETCH_* constants to values based on the percentage definitions in css fonts 4. r=jwatt
2018-04-16 10:00:57 +01:00
Jonathan Watt
1e7f76576a
Bug 1436048 part 1 - Use a user defined type for font weight everywhere. r=jfkthame,emilio
...
--HG--
extra : rebase_source : 2e267ff99de6f52484e34ac15c39e5ca8b473394
2018-04-13 20:34:37 +01:00
Jonathan Kew
ad1143ff1a
Bug 1435984 - patch 8 - Apply variation settings from the font entry in the Linux (fontconfig) back-end on a CLOSED TREE. r=lsalzman
...
--HG--
extra : source : 581ff0f6798ec68aca359c5d8cc6ca38e75801e4
extra : amend_source : 951df3de667a70f09485f62efc1d9e83e2036c51
2018-02-14 22:02:05 +11:00
Jonathan Kew
5b9b689254
Bug 1434699 - Don't use dlsym() to look up FreeType functions when building with MOZ_TREE_FREETYPE. r=lsalzman
2018-02-01 15:28:09 +00:00
Jonathan Kew
c70ab6cef4
Bug 1432552 - patch 2 - Linux font back-end implementation of getVariationInstances. r=dholbert
2018-01-29 13:24:11 +00:00
Jonathan Kew
fbdc3ccec5
Bug 1323743 - patch 4 - Implement gfxFontEntry::GetVariationAxes for the Linux (fontconfig) backend. r=dholbert
2018-01-18 19:27:41 +00:00
Lee Salzman
1a23b6eab1
Bug 1400384 - support text writing modes with WebRender. r=gankro
2018-01-17 07:51:20 -05:00
Lee Salzman
7755d675bb
Bug 1394568 - plumb synthetic italics flag through thebes and Moz2D into WebRender. r=gankro
2018-01-09 10:37:49 -05:00
Jonathan Kew
075a3b6980
Bug 1427641 - patch 6 - Tidy up and refactor code for creating FcPattern for an FT_Face and vice versa. r=lsalzman
2018-01-06 10:58:23 +00:00
Jonathan Kew
12da6cfb3e
Bug 1427641 - patch 5 - Also for system-installed fonts, create a separate FcPattern and face for each instance when variations are present. r=lsalzman
2018-01-06 10:58:23 +00:00
Jonathan Kew
fba67c901c
Bug 1427641 - patch 4 - For downloadable fonts that have variations, create a separate FT_Face for each instance used. r=lsalzman
2017-12-10 14:01:32 +00:00
Jonathan Kew
88ac266967
Bug 1427641 - patch 3 - Add variation data to the cairo_ft_*_font objects, so they can properly track instances of the same font resource used with different variation parameters. r=lsalzman
2017-12-07 13:22:49 +00:00
Jonathan Kew
7ef5a362b4
Bug 1427641 - patch 1 - Get glyph widths directly from the FreeType face, instead of via a cairo scaled_font wrapper. r=lsalzman
2017-12-06 13:51:39 +00:00
Jonathan Kew
dee38e2ed4
Bug 1419673 - Only check font paths against sandbox policy if read sandboxing is enabled. r=gcp
2017-11-22 11:10:20 +00:00
Jonathan Kew
e264fbefb1
Bug 1416795 - Implement synthetic-oblique font rendering by applying a transform at gfxFont::Draw time, rather than setting it on the cairo font matrix. r=jrmuizel
2017-11-17 10:54:21 +00:00
Jonathan Kew
d3412dc6b0
Bug 1412090 - patch 3 - Check the sandbox policy to verify font files will be readable by the content process before including them in the system font list. r=gps
2017-11-09 16:54:30 +00:00
Jonathan Kew
fe4d2e8b97
Bug 1412090 - patch 2.1 - Work around FcNameParse bug in fontconfig versions around 2.11.0, by escaping any leading space in the encoded charset element. r=lsalzman
2017-11-12 21:35:25 +00:00
Jonathan Kew
a889197da2
Bug 1412090 - patch 2 - Rework the fontconfig-based platform font list implementation to pass the list of available font patterns from chrome to content, instead of letting the content process get it directly from fontconfig. r=lsalzman
2017-11-02 20:29:33 +00:00
Jonathan Kew
7036cc5f85
Backed out changesets 75e7f32c3365, eec946b59360, 72a6f5f3512c, ea8ee40ed426 (bug 1412090) for apparently breaking all system-installed fonts on some Linux systems. r=backout
2017-11-10 16:05:33 +00:00
Jonathan Kew
1177becaba
Bug 1412090 - patch 3 - Check the sandbox policy to verify font files will be readable by the content process before including them in the system font list. r=gps
2017-11-09 16:54:30 +00:00
Jonathan Kew
0ba9f9c57b
Bug 1412090 - patch 2 - Rework the fontconfig-based platform font list implementation to pass the list of available font patterns from chrome to content, instead of letting the content process get it directly from fontconfig. r=lsalzman
2017-11-02 20:29:33 +00:00
Lee Salzman
341a10bb1b
Bug 1412545 - AddRef user data before passing to cairo_font_face_set_user_data. r=jrmuizel
...
MozReview-Commit-ID: FcPTjCWh9wu
2017-10-30 22:31:11 -04:00
Jonathan Kew
bbbc9da9dd
Bug 1407114 - part 1 - preliminary cleanup - Remove the (unused) runScript member from the GlobalFontMatch struct, and introduce gfxFontEntry::IsNormalStyle() helper method. r=jrmuizel
2017-10-28 13:21:38 +01:00
Lee Salzman
600dccf87f
Bug 1404742 - track ScaledFont and UnscaledFont lifetimes with ThreadSafeWeakPointer. r=bas
...
MozReview-Commit-ID: GRSEYh1fG4U
2017-10-18 14:22:09 -04:00
Kris Maglione
9204ca3e99
Bug 1404198: Part 2h - Switch to NS_NewTimer* in gfx. r=njn
...
MozReview-Commit-ID: 3EUyHzdkbqH
--HG--
extra : rebase_source : 7d64b5b7ad0033e7ce6661be7993498fd9835060
2017-10-15 23:15:12 -07:00
Mike Hommey
404ef7af3e
Bug 1407838 - Remove the remains of NS_Alloc/NS_Realloc/NS_Free. r=njn
...
Bug 1134923 removed the use of those functions in gecko, and left some
for the XPCOM standalone glue. The XPCOM standalone glue was severely
stripped down in bug 1306327, with the effect of removing the
implementation for those functions.
The remains in nsXPCOM.h are:
XPCOM_API(void*) NS_Alloc(size_t aSize);
XPCOM_API(void*) NS_Realloc(void* aPtr, size_t aSize);
XPCOM_API(void) NS_Free(void* aPtr);
With no implementation left, the first arm is never actually used, and
the second arm means every remaining use of those functions in the tree
is a macro expansion to one of moz_xmalloc, moz_xrealloc or free.
--HG--
extra : rebase_source : fd1669abc5a25d8edbd5c3a8522e22a5c3f558e2
2017-10-12 11:08:44 +09:00
Nicholas Nethercote
d225f7151b
Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
...
(Path is actually r=froydnj.)
Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.
MozReview-Commit-ID: 91U22X2NydP
--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
Jonathan Kew
82bdaf03b2
Bug 1395061 - patch 3 - Clean up vestigial code that existed to support setting the gfxFontEntry::mSymbolFont flag. r=jrmuizel
2017-09-11 19:23:30 +01:00
Myk Melez
aa59a13010
Bug 1395061 - patch 1 - Refactor gfxFontEntry::SupportsLangGroup and MatchesGenericFamily into gfxFontFamily. r=jfkthame
2017-09-11 19:22:15 +01:00
Jonathan Kew
6ceb7d87f9
Bug 835204 - Accept styled font-family names as used in the legacy GDI model, for compatibility with content that assumes GDI-style font naming. r=heycam
2017-08-01 11:25:35 +01:00
Lee Salzman
a21ad6d19e
Bug 1385029 - require implementation of gfxFont::GetScaledFont and remove unnecessary gfxPlatform::GetScaledFontForFont. r=jfkthame
...
MozReview-Commit-ID: GP1Aekecb0s
2017-08-07 16:20:44 -04:00
Lee Salzman
79f42cf9ec
Bug 1385029 - get rid of gfxFontconfigUtils.h since gfxFontconfigFontBase is unnecessary. r=jfkthame
...
MozReview-Commit-ID: FTXjgmRYBxI
2017-08-07 16:20:37 -04:00
Jonathan Kew
5d323919b9
Bug 1388059 - Ignore font size tolerance when selecting faces from a font family during global fallback. r=lsalzman
2017-08-07 17:27:33 +01:00
JerryShih
fcec675802
Bug 1368531 - Put the task gfxPlatformFontList::InitOtherFamilyNames() into idle queue. r=jfkthame
...
Add a boolean value in FindFamily() to check if gecko needs to defer the
InitOtherFamilyNames() task into idle queue.
Add a new telemetry data FONTLIST_INITOTHERFAMILYNAMES_NO_DEFERRING for the
execution time of InitOtherFamilyNames() running regularly at main thread
instead of in idle queue.
MozReview-Commit-ID: A3YPDcHtXrX
2017-08-02 20:33:00 -04:00
Sebastian Hengst
c2b9c2c204
Backed out changeset e1d538cd1cf8 (bug 1368531) for bustage on Windows: 'gfxPlatformFontList::InitOtherFamilyNamesRunnable::Cancel': overriding virtual function differs from 'mozilla::CancelableRunnable::Cancel' only by calling convention. r=backout
2017-08-02 21:12:51 +02:00
JerryShih
0138441875
Bug 1368531 - Put the task gfxPlatformFontList::InitOtherFamilyNames() into idle queue. r=jfkthame
...
Add a boolean value in FindFamily() to check if gecko needs to defer the
InitOtherFamilyNames() task into idle queue.
Add a new telemetry data FONTLIST_INITOTHERFAMILYNAMES_NO_DEFERRING for the
execution time of InitOtherFamilyNames() running regularly at main thread
instead of in idle queue.
MozReview-Commit-ID: A3YPDcHtXrX
2017-08-01 01:07:00 -04:00