Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Go to file
Jonathan Kew d9227c7961 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-06 12:29:22 +00:00
accessible Bug 979640 - Make build system error on missing test files; r=ted 2014-03-04 17:48:50 -08: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-05 23:20:52 -08:00
browser Merge m-c to fx-team 2014-03-05 18:58:38 -08:00
build Bug 973770 - Build backend that generates C/C++ Eclipse projects. r=gps 2014-03-06 00:03:10 -05: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 Merge fx-team to m-c. 2014-03-05 15:49:40 -05:00
content Bug 978851 - LoadInfo::UpdateSystemLoad warns about format string in sscanf. r=padenot 2014-03-06 07:53:34 +01:00
db/sqlite3 Bug 973405 - Move some misc LOCAL_INCLUDES to moz.build; r=glandium 2014-02-18 08:49:12 -05:00
docshell Backed out changeset e670f691e2b9 (bug 968647) for mochitest test bustage on OS X on a CLOSED TREE 2014-02-28 09:30:34 +01:00
dom Backed out changeset 4fb349c12a63 (bug 977372) for b2g ics emulator debug m8 test failure 2014-03-06 09:16:43 +01:00
editor Bug 978203 - Don't include nsWindowMemoryReporter.h in nsINode.h. r=smaug 2014-03-04 15:39:42 -08:00
embedding Bug 976896 - Port STL_FLAGS to moz.build; r=mshal 2014-03-04 19:39: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-06 12:29:22 +00:00
hal Bug 979205 - Make LMK and low-mem trigger preferences use values in KiB instead of MiB. r=fabrice 2014-03-04 11:23:00 +01:00
image Bug 952354. Don't worry about premult alpha flags if the frame is opaque when calling GetFrame and CopyFrame. r=seth 2014-03-04 22:48:48 -06:00
intl Bug 978486 - Remove nsErrorService::mErrorStringBundleKeyMap. r=froydnj 2014-03-04 09:49:40 -08:00
ipc Backed out changeset 1314168b5271 (bug 977372) 2014-03-06 09:16:01 +01:00
js Bug 960108 - Ignore saved frame chains and contexts in JS::DescribeStack. r=bz 2014-03-05 20:15:35 -08:00
layout Merge m-c to inbound on a CLOSED TREE. 2014-03-05 16:08:02 -05:00
media Bug 979689 - Port the per-source flags for libvpx to moz.build; r=mshal 2014-03-05 17:00:52 -05:00
memory Bug 976896 - Port STL_FLAGS to moz.build; r=mshal 2014-03-04 19:39:06 -05:00
mfbt Bug 979067 - Stop exporting the guard object classes; r=froydnj 2014-03-05 07:50:55 -05:00
mobile Merge fxteam to m-c 2014-03-05 18:20:17 -08:00
modules Bug 619487: Assert when preferences are used off the main thread. r=dbaron 2014-03-05 17:58:01 -08:00
mozglue Bug 976896 - Port STL_FLAGS to moz.build; r=mshal 2014-03-04 19:39:06 -05:00
netwerk Bug 977736 - Rewind stream early in DoAuthRetry. r=honzab 2014-03-04 13:51: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 8 changesets (bug 959150) for Linux debug build bustage on a CLOSED TREE. 2014-03-05 15:26:07 -05:00
probes
profile Bug 976896 - Port STL_FLAGS to moz.build; r=mshal 2014-03-04 19:39:06 -05:00
python Bug 973770 - Build backend that generates C/C++ Eclipse projects. r=gps 2014-03-06 00:03:10 -05: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 Bug 946407 - Disable sandbox when DMDing. r=njn r=kang 2014-03-04 18:27:14 -08:00
services Bug 972070 - followup to address review comments previously missed. r=jedp 2014-03-03 10:28:30 +11:00
startupcache
storage Bug 973405 - Move some misc LOCAL_INCLUDES to moz.build; r=glandium 2014-02-18 08:49:12 -05:00
testing merge b2g-inbound to mozilla-central 2014-03-05 13:24:51 +01:00
toolkit Merge fxteam to m-c 2014-03-05 18:20:17 -08:00
tools Followup for Bug 900251 - remove check for extra channel-prefs.js and update-settings.ini files in the mar generation scripts. r=nthomas 2014-03-05 17:04:21 -08:00
uriloader Use the new ReplaceChars with char16_t array. Bug 979556, r=bsmedberg 2014-03-05 21:04:36 +02:00
view Bug 978001. Null check presshell in nsViewManager::ProcessPendingUpdatesForView. r=mats 2014-03-02 05:14:27 -06:00
webapprt Bug 976896 - Port STL_FLAGS to moz.build; r=mshal 2014-03-04 19:39:06 -05:00
widget Backed out changeset 22e34e33e9ee (bug 979853) for win7/win8 debug mochitest bustage on a CLOSED TREE 2014-03-06 13:27:04 +01:00
xpcom Merge m-c to inbound on a CLOSED TREE. 2014-03-05 16:08:02 -05:00
xpfe Bug 975688 part.28 Rename nsDOMEvent to mozilla::dom::Event r=smaug 2014-03-05 09:37:43 +09:00
xulrunner Bug 976896 - Port STL_FLAGS to moz.build; r=mshal 2014-03-04 19:39:06 -05:00
.clang-format
.clang-format-ignore
.gdbinit
.gitignore
.hgignore
.hgtags
.lldbinit
.reviewboardrc
aclocal.m4
Android.mk
AUTHORS
client.mk
client.py
CLOBBER Bug 978784 - Stop exporting ICU symbols from xul.dll; r=glandium 2014-03-04 10:42:54 -05:00
configure.in Bug 976648 - Toplevel build/config for powerpc64le-linux support. r=bsmedberg, r=blassey 2014-03-05 12:04:44 -05:00
LEGAL
LICENSE
mach
Makefile.in
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

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/