Gecko engine for Wine
Go to file
Jonathan Kew fe145a977c bug 974575 - backport Behdad's patches for color bitmap glyph support from current cairo trunk. r=jrmuizel
* * *
[ft] Fix resizing of bitmap fonts
From b94a519aad3d5b50aa6de47ee16ee6a099de9791 Mon Sep 17 00:00:00 2001
Say, you were asking cairo for a font at 200px.  For bitmap-only fonts,
cairo was finding the closes strike size and using it.  If the strike
was at 20px, well, that's what you were getting.  We now scale that 20px
strike by a factor of 10 to get the correct size rendering.

Note that by itself this patch doesn't change much on the Linux desktop.
The reason is that the size you are interested in (eg. 200px) is lost by
fontconfig.  When you request a font at 200px, fontconfig returns a font
pattern that says 20px, and so the next layers thing you want a font at
20px.  To address that, one also needs a piece of fontconfig config that
puts the 200 back into the pixelsize.  Something like this:

<match target="font">
  <test name="scalable" mode="eq">
    <bool>false</bool>
  </test>
  <edit name="pixelsize" mode="assign">
    <times>
      <name>size</name>
      <name>dpi</name>
      <double>0.0138888888888</double> <!--1/72.-->
    </times>
  </edit>
</match>

I'm going to try to upstream this config so it will be enabled by
default.  The config can be a bit smarter.  For example, if
metricshinting is enabled and the size difference is small, we may as
well not scale.

The nice thing about this is that the configuration of whether and when
to scale bitmaps will be done in fontconfig, not cairo / Qt / ... code.
---
* * *
[FT] Prefer downscaling bitmap glyphs to upscaling

From a8f1b456db744e33a10b2301df03528787e5b1ca Mon Sep 17 00:00:00 2001
Say, you have bitmap strikes for sizes 50ppem and 100ppem.
To render at 60ppem, it's much better to downscale the 100ppem
bitmap than upscale 50ppem one.  Prefer downscaling.
---
* * *
[ft] I meant fabs(), not abs()

From 13bd8d09b44e50649f6fc4d58d036bc32c1d5c5b Mon Sep 17 00:00:00 2001
---
* * *
[ft] Fix memory bug in copying bitmaps

From a0f556f37fb7016aa304b7cf0e811c0d38f0b969 Mon Sep 17 00:00:00 2001
---
* * *
[ft] Fix wrong assumptions

From e738079302a968b7b1fb9101cd4d92a8887bedce Mon Sep 17 00:00:00 2001
If subpixel rendering is enabled, but FT returns a 8bit gray bitmap
(perhaps because the font has 8bit embedded bitmaps) we were hitting
the assertions because the assumptions made were wrong.  Fix up.
---
* * *
Towards support loading color glyphs from FreeType

From 2cc353c3dbe01b4d8f65d6de800f2b1d6004a1c2 Mon Sep 17 00:00:00 2001
See comments.
---
* * *
Support 2bit and 4bit embedded bitmaps

From 9444ef09ccde2735258cc1bd2f1912119a32dd88 Mon Sep 17 00:00:00 2001
---
* * *
[ft] Fix math

From 7d26341072b13a78d4b3fe58779057ac020be487 Mon Sep 17 00:00:00 2001
---
* * *
[ft] Add missing include

From 0554d76402321b25cc952180e4d19436a9038d1a Mon Sep 17 00:00:00 2001
---
* * *
[ft] Fix alignment

From 34a747e7bdeba1cfe17318f80fbe6720d47bc023 Mon Sep 17 00:00:00 2001
---
* * *
[ft] Ensure alignment of bitmaps received from FreeType

From 46d9db96d460fea72f0420102e8a90c6a7231f79 Mon Sep 17 00:00:00 2001
---
2014-03-04 05:37:40 +00:00
accessible Bug 975688 part.20 Rename nsDOMTouchEvent and nsDOMTouchList to mozilla::dom::TouchEvent and TouchList r=smaug 2014-02-28 23:58:42 +09:00
addon-sdk Bug 972925 - Uplift Add-on SDK to Firefox 2014-03-03 11:22:07 -08:00
b2g Bumping manifests a=b2g-bump 2014-03-03 14:51:12 -08:00
browser Merge inbound to m-c 2014-03-03 20:25:51 -08:00
build Back out 47afb5f53400 (bug 978784) because it's still busted with a clobber 2014-03-03 21:26:19 -08:00
caps Bug 976348 - Change DescribeScriptedCaller to not return a JSScript (r=bholley) 2014-02-25 09:43:14 -06:00
chrome Bug 962608 - Make PL_DHashTableInit infallible by default. r=briansmith,bsmedberg,ehsan,froydnj,jduell,jfkthame,roc,smaug 2014-02-27 10:04:09 -08:00
config Fix a typo, no bug, DONTBUILD 2014-03-02 16:35:24 -05:00
content Bug 978422 - ReattachTextureToAnyFramebufferToWorkAroundBugs no longer needed. - r=bjacob 2014-03-03 18:50:45 -08:00
db/sqlite3 Bug 973405 - Move some misc LOCAL_INCLUDES to moz.build; r=glandium 2014-02-18 08:49:12 -05:00
docshell Bug 968647 - Part 1. Add position change notification for IME. r=roc 2014-02-28 16:45:01 +09:00
dom Bug 976258 - Undo the damage of including windows.h in IPCMessageUtils.h; r=bent 2014-03-03 21:35:51 -05:00
editor Bug 458300 - Rename nsINameSpaceManager.h to nsNameSpaceManager.h. r=jst r=hsivonen 2014-02-27 20:04:46 -03:00
embedding bug 969725 - geckoview_example uses incorrect main.xml layout and AndroidManifest r=nalexander 2014-02-27 12:21:06 -05:00
extensions Bug 977047 - Add words related to crypto. r=ehsan 2014-03-03 08:57:12 +07:00
gfx bug 974575 - backport Behdad's patches for color bitmap glyph support from current cairo trunk. r=jrmuizel 2014-03-04 05:37:40 +00:00
hal Bug 977964 - Move some flags to moz.build; r=glandium 2014-03-03 21:58:37 -05:00
image Bug 854795. Add support for -moz-samplesize. r=seth 2014-02-28 16:43:14 -05:00
intl Bug 974175 - Stop using grouping separator characters when displaying <input type=number>'s value. r=ehsan 2014-02-20 12:31:05 +00:00
ipc Bug 976258 - Undo the damage of including windows.h in IPCMessageUtils.h; r=bent 2014-03-03 21:35:51 -05:00
js Bug 945152 - Never allocate ArrayBuffers with unknown API contents in the nursery; r=sfink 2014-03-03 18:26:24 -08:00
layout Merge m-c to m-i 2014-03-03 19:50:07 -08:00
media bug 969814 - build freetype with support for color bitmap (png) glyphs within opentype fonts. r=ted,jrmuizel 2014-03-04 05:37:40 +00:00
memory Bug 978442 - Use WindowsVersion.h from VolatileBuffer. r=mwu 2014-03-02 10:29:13 +09:00
mfbt Backed out 6 changesets (bug 976648) for android x86 bustage on a CLOSED TREE 2014-02-28 15:40:22 -08:00
mobile Merge inbound to m-c 2014-03-03 20:25:51 -08:00
modules Merge mozilla-central and b2g-inbound 2014-03-03 16:59:32 +00:00
mozglue Bug 951827 - Force a detour-style hook for LdrLoadDll. r=ehsan 2014-03-03 10:27:21 -05:00
netwerk Bug 977964 - Move some flags to moz.build; r=glandium 2014-03-03 21:58:37 -05:00
nsprpub Bug 844784: Update NSPR to NSPR_4_10_4_BETA4. Also includes the changes 2014-03-01 08:46:18 -08:00
other-licenses Bug 910754 - Update include location for skia-npapi to look in skia/trunk r=snorp 2014-02-13 12:19:07 -05:00
parser Backed out changeset c14980a16210 (bug 948265) so it can address review comments first, despite the CLOSED TREE 2014-02-28 14:48:31 -08:00
probes
profile Bug 977803 - Release the fcntl lock during nsProfileLock::Unlock if it was acquired. r=bsmedberg 2014-02-28 09:11:38 -05:00
python Bug 973649 - Add logic for CFLAGS, CXXFLAGS and LDFLAGS to moz.build; r=gps 2014-02-26 12:49:00 -08:00
rdf Bug 962608 - Make PL_DHashTableInit infallible by default. r=briansmith,bsmedberg,ehsan,froydnj,jduell,jfkthame,roc,smaug 2014-02-27 10:04:09 -08:00
security Merge latest green inbound changeset and mozilla-central 2014-03-03 14:44:44 +00:00
services Bug 972070 - followup to address review comments previously missed. r=jedp 2014-03-03 10:28:30 +11:00
startupcache Bug 957256: Modify StartupCache callbacks to use context parameter to obtain object pointer; r=bsmedberg 2014-01-10 17:16:25 -07:00
storage Bug 973405 - Move some misc LOCAL_INCLUDES to moz.build; r=glandium 2014-02-18 08:49:12 -05:00
testing Merge latest green inbound changeset and mozilla-central 2014-03-03 14:44:44 +00:00
toolkit Merge m-c to inbound 2014-03-03 20:32:35 -08:00
tools Bug 855081 patch 2: Use a single buffer for the demangled names. r=jesup 2014-03-03 00:54:38 -08:00
uriloader Bug 962608 - Make PL_DHashTableInit infallible by default. r=briansmith,bsmedberg,ehsan,froydnj,jduell,jfkthame,roc,smaug 2014-02-27 10:04:09 -08:00
view Bug 978001. Null check presshell in nsViewManager::ProcessPendingUpdatesForView. r=mats 2014-03-02 05:14:27 -06:00
webapprt Bug 847518 - window.open(url, "_blank") should open in default browser. r=myk, r=bz 2014-02-27 11:56:48 -05:00
widget bug 969814 - build freetype with support for color bitmap (png) glyphs within opentype fonts. r=ted,jrmuizel 2014-03-04 05:37:40 +00:00
xpcom Bug 975419 - Add a JS::TenuredHeap<JSObject*> overload to TraceCallbacks. r=mccr8,terrence 2014-03-03 08:53:42 -08:00
xpfe Bug 974258 Manually size autocomplete history popup to the autocomplete's width r=Ratty 2014-02-23 18:26:52 +00:00
xulrunner Bug 975733 - Move some LDFLAGS for building executables on Windows to moz.build; r=mshal 2014-02-26 21:38:29 -05:00
.clang-format Bug 965120 - Use .clang-format to set tree default format; r=gps 2014-01-30 14:27:44 +13:00
.clang-format-ignore Bug 967361 - Fix .clang-format-ignore on Windows. r=gps 2014-02-04 17:25:04 +13:00
.gdbinit
.gitignore
.hgignore
.hgtags Tagging for mozilla-central version bumps DONTBUILD NO BUG (retroactive missing tag from Dec 9th, 2013 merge day) 2014-02-12 16:58:47 -08:00
.lldbinit Bug 960300 - Put a .lldbinit in the objdir and in dist/bin/, which load the .lldbinit in topsrcdir. r=glandium 2014-01-21 14:47:05 +11:00
.reviewboardrc
aclocal.m4 Bug 967556 - Divert AC_CHECK_FUNC so that the #includes it uses can't interfere with the function it tests. r=gps 2014-02-14 08:15:02 +09:00
Android.mk
AUTHORS
client.mk Bug 950298 - Make the js build system use top-level as its root objdir. r=gps 2014-01-14 07:38:40 +09:00
client.py
CLOBBER Back out 47afb5f53400 (bug 978784) because it's still busted with a clobber 2014-03-03 21:26:19 -08:00
configure.in bug 969814 - build freetype with support for color bitmap (png) glyphs within opentype fonts. r=ted,jrmuizel 2014-03-04 05:37:40 +00:00
LEGAL
LICENSE
mach Backed out changeset faafb9526e32 (bug 957721) for breaking mach on Windows. 2014-01-16 08:21:07 -05:00
Makefile.in Bug 969164 - Replace most BUILDING_JS uses with JS_STANDALONE. r=gps 2014-02-11 10:37:47 +09:00
moz.build Bug 961598 - Part 2: Disable wrapped code from ICS. r=mwu, mh 2014-02-25 09:46:48 +08:00
mozilla-config.h.in Bug 976898 - Move the sdkdecls.h force-include out of the build system; r=bbondy,glandium 2014-02-28 08:17:22 -05:00
README.txt No bug: the OVERRIDE HOOK is stupid. 2014-01-21 08:23:43 -08:00

An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    http://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    http://developer.mozilla.org/en/docs/Creating_a_patch
    http://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

If you have a question about developing Mozilla, and can't find the solution
on http://developer.mozilla.org, you can try asking your question in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

You can download nightly development builds from the Mozilla FTP server.
Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy. Firefox nightlies, for example, can be found at:

    ftp://ftp.mozilla.org/pub/firefox/nightly/latest-trunk/
            - or -
    http://nightly.mozilla.org/