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. .bazelrc
  2. .bazelversion
  3. .gitignore
  4. .mailmap
  5. .settings/
  6. BUILD
  7. COPYING
  8. Documentation/
  9. README.md
  10. WORKSPACE
  11. fake_pom_deploy.xml
  12. java/com/google/gitiles/
  13. javatests/com/google/gitiles/
  14. lib/
  15. navbar.md
  16. resources/
  17. tools/
  18. version.bzl
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.