unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Ilya Chernyshov <ichernyshovvv@gmail.com>, Alan Third <alan@idiocy.org>
Cc: 66941@debbugs.gnu.org
Subject: bug#66941: 29.1; Emacs on Windows can't display CJK characters correctly in svg images
Date: Sun, 05 Nov 2023 08:47:08 +0200	[thread overview]
Message-ID: <83bkc84ryr.fsf@gnu.org> (raw)
In-Reply-To: <87wmuxe43h.fsf@gmail.com> (message from Ilya Chernyshov on Sun,  05 Nov 2023 02:00:18 +0700)

> From: Ilya Chernyshov <ichernyshovvv@gmail.com>
> Date: Sun, 05 Nov 2023 02:00:18 +0700
> 
> 
> Hi. Can't reproduce the issue by myself (I'm on linux), but already have
> been sent a couple of issues in my package repo.
> 
> Screenshot:
> 
> https://user-images.githubusercontent.com/9244946/280170406-64aca531-3542-40b7-9ae3-fc13ab3f1029.png
> 
> Link to the issue:
> 
> https://github.com/ichernyshovvv/org-timeblock/issues/36
> 
> Code to reproduce:
> 
> (progn
>   (require 'svg)
>   (switch-to-buffer "*svg-test*")
>   (let ((svg-image (svg-create 200 200))
> 	(inhibit-read-only t))
>     (erase-buffer)
>     (svg-text svg-image "我喜欢自由软件" :y 100 :x 50)
>     (svg-print svg-image)
>     (image-mode)))

I cannot get Emacs on Windows to display _any_ non-ASCII text with the
above recipe, not even if I use Latin-1 characters or characters from
the current system codepage.  Emacs encodes non-ASCII characters as
&#nnnn numbers (you can see that if you type "C-c C-c" in the
*svg-test* buffer), which is probably correct, but the SVG image is
not displayed for some reason.

Alan, any ideas or suggestions?





  reply	other threads:[~2023-11-05  6:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-04 19:00 bug#66941: 29.1; Emacs on Windows can't display CJK characters correctly in svg images Ilya Chernyshov
2023-11-05  6:47 ` Eli Zaretskii [this message]
2023-11-05  6:54   ` Eli Zaretskii
2023-11-05 23:27     ` Alan Third
2023-11-06 12:21       ` Eli Zaretskii
2023-11-06 12:57         ` Alan Third

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=83bkc84ryr.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=66941@debbugs.gnu.org \
    --cc=alan@idiocy.org \
    --cc=ichernyshovvv@gmail.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.
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).