List for cgit developers and users
 help / color / mirror / Atom feed
Subject: The line number isn't always aligned with the source code
Date: Wed, 29 May 2019 00:38:24 +0800	[thread overview]
Message-ID: <ada1269ad690fc6ed9ad00206faf04a3172cf6c1.camel@gmail.com> (raw)

I found the problem on my cgit site: 
https://www.tfcis.org/~lantw44/cgit/configfile/tree/README?h=bash_include-20160928

I attached three screenshots in this message. Firefox and Chromium are
unable to keep the line number and the source code aligned, but
Epiphany can.

The default monospace font on my system is 'DejaVu Sans Mono'. Since
DejaVu fonts don't include Chinese characters required to show the
page, the browser picks 'Source Han Sans TW' as the secondary font,
which has different height with DejaVu, causing line number to be
misaligned. Is there a way to fix the problem and make it work on all
browsers?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cgit-screenshot-firefox.png
Type: image/png
Size: 59430 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20190529/0c4cbb48/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cgit-screenshot-chromium.png
Type: image/png
Size: 76403 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20190529/0c4cbb48/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cgit-screenshot-epiphany.png
Type: image/png
Size: 79512 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20190529/0c4cbb48/attachment-0005.png>


             reply	other threads:[~2019-05-28 16:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-28 16:38  [this message]
2019-05-28 16:51 ` 

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ada1269ad690fc6ed9ad00206faf04a3172cf6c1.camel@gmail.com \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).