diff --git a/linux/install-chromeos-fonts.py b/linux/install-chromeos-fonts.py index 61f7332a1..b91208479 100755 --- a/linux/install-chromeos-fonts.py +++ b/linux/install-chromeos-fonts.py @@ -82,6 +82,36 @@ def main(args): for file in files: os.chmod(os.path.join(base, file), 0644) + print """\ + +Chrome OS font rendering settings are specified using Fontconfig. If your +system's configuration doesn't match Chrome OS's (which vary for different +devices), fonts may be rendered with different subpixel rendering, subpixel +positioning, or hinting settings. This may affect font metrics. + +Chrome OS's settings are stored in the media-libs/fontconfig package, which is +at src/third_party/chromiumos-overlay/media-libs/fontconfig in a Chrome OS +checkout. You can configure your system to match Chrome OS's defaults by +creating or editing a ~/.fonts.conf file: + + + + + + true + true + true + hintslight + rgb + + + +To load additional per-font configs (and assuming you have Chrome OS checked +out), add the following immediately before the "" line: + + /path/to/src/third_party/chromiumos-overlay/media-libs/fontconfig/files/local.conf +""" + return 0 if __name__ == '__main__':