unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Matsievskiy S.V." <seregaxvm.main@gmail.com>
To: Alan Third <alan@idiocy.org>
Cc: 52599@debbugs.gnu.org
Subject: bug#52599: 29.0.50; Unproportional Unicode character scale in SVG overlay
Date: Wed, 22 Dec 2021 11:49:26 +0300	[thread overview]
Message-ID: <75dbb59f2a44caa42d2a6129cfbf3878324021fd.camel@gmail.com> (raw)
In-Reply-To: <YcI/XAH2/+lpWxll@idiocy.org>

[-- Attachment #1: Type: text/plain, Size: 1656 bytes --]

> Or is there some custom mathjax CSS that's supposed to be applied?

I ended up exposing ex size configuration to customize.

I'm fine with leaving things as they are now and just wait for MathJax
to add more fonts in future releases.

-- 
Best regards,
S.V. Matsievskiy

On Tue, 2021-12-21 at 20:55 +0000, Alan Third wrote:
> On Tue, Dec 21, 2021 at 03:15:44PM +0300, Matsievskiy S.V. wrote:
> > > So what we end up with is that the text scales directly according
> > > to
> > > the font size and the paths scale according to whatever nonsense
> > > librsvg returns for the image size. 
> > 
> > Aren't these characters associated with the svg overlay? If so, it
> > should be possible to apply image scaling rules to them, or is it
> > too
> > much work?
> 
> To just use image scaling rules set the css to "". That way
> increasing
> the font size won't change the font size in the image and this
> problem
> won't rear it's ugly head.
> 
> I suspect this should be considered a bug in the mathjax output. It's
> relying on the default font being a specific size, and when it's not
> then the scaling goes all wonky. I guess this means they expect that
> all SVG renderers always use the exact same font size?
> 
> Or is there some custom mathjax CSS that's supposed to be applied?
> I've had a quick look at the mathjax documentation and it doesn't
> look
> like it. They say that SVG output doesn't use text directly so is
> unaffected by font problems. 😒
> 
> I don't think we want to change our default CSS to not set the font
> size as that would make using SVGs in-line with text more
> complicated.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  reply	other threads:[~2021-12-22  8:49 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-18 11:50 bug#52599: 29.0.50; Unproportional Unicode character scale in SVG overlay Matsievskiy S.V.
2021-12-18 12:04 ` Eli Zaretskii
2021-12-18 12:13   ` Matsievskiy S.V.
2021-12-18 12:51     ` Eli Zaretskii
2021-12-18 14:09       ` Matsievskiy S.V.
2021-12-20 16:31       ` Alan Third
2021-12-21 12:15         ` Matsievskiy S.V.
2021-12-21 20:55           ` Alan Third
2021-12-22  8:49             ` Matsievskiy S.V. [this message]
2022-01-21 13:36             ` Lars Ingebrigtsen
2021-12-19 11:15 ` Lars Ingebrigtsen
2021-12-19 11:55   ` Matsievskiy S.V.
2021-12-19 12:07     ` Lars Ingebrigtsen
2021-12-19 12:11   ` Stephen Berman
2021-12-19 12:13     ` Lars Ingebrigtsen
2021-12-19 14:31       ` Stephen Berman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=75dbb59f2a44caa42d2a6129cfbf3878324021fd.camel@gmail.com \
    --to=seregaxvm.main@gmail.com \
    --cc=52599@debbugs.gnu.org \
    --cc=alan@idiocy.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).