Drop u-pre's font-weight

When displaying file contents, as for example on [*], u-pre, setting
font weight to 500, is combined with u-monospace, setting font-family
to `Source Code Pro`.

The @import of `Source Code Pro` only defines the font face for font
weight 400. So on setups without that font, the 500 has no effect and
display falls back to using `Source Code Pro` with the lighter weight
400 (i.e., `normal`).

On setups where the monospace font is provided with both 400 and 500
weights (users with the fonts installed locally, or using Gerrit's own
provided fonts setup), the heavier 500 weight gets used, leading to an
undesirable bold look for source code.

Drop u-pre's font-weight: this way, we do not change the appearance on
most setups and we avoid bold-looking source code on setups that
provide their own fonts.

[*] https://gerrit.googlesource.com/gerrit/+/589af813ccca4c329bd4845852cd9d6d73d1d11d/gerrit-main/src/main/java/Main.java

Change-Id: I7322c2762f6bce1a6fc6b0de1a2a3674092ef8a1
1 file changed
tree: 225f87ab11af57ba46baa69973c60f22a3034acd
  1. .settings/
  2. Documentation/
  3. java/
  4. javatests/
  5. lib/
  6. resources/
  7. tools/
  8. .bazelrc
  9. .bazelversion
  10. .gitignore
  11. .mailmap
  12. BUILD
  13. COPYING
  14. fake_pom_deploy.xml
  15. navbar.md
  16. README.md
  17. version.bzl
  18. WORKSPACE
README.md

Gitiles - A simple JGit repository browser

Gitiles is a simple repository browser for Git repositories, built on JGit. Its guiding principle is simplicity: it has no formal access controls, no write access, no fancy Javascript, etc.

Gitiles automatically renders *.md Markdown files into HTML for simplified documentation. Refer to the Markdown documentation for details.

Configuration

Gitiles is configurable in a git-style configuration file named gitiles.config. Refer to the configuration documentation for details.

Bugs

Use the issue tracker at github to file bugs.

Contributing to Gitiles

Please refer to the Developer Guide.