SVG images don't show text on Android?

Joost Kremers <[email protected]>
Newsgroups gmane.emacs.help
Message-ID <[email protected]>
Hi all,

I'm running into an issue trying to create SVG images with text on Android:
it seems the text isn't displayed.

The following works fine on Emacs on Linux:

```
(require 'svg)

(let* ((width 100)
       (height 40)
       (svg (svg-create width height)))
  ;; Draw rectangle (the box)
  (svg-rectangle svg
                 0 0 width height
                 :stroke "black"
                 :fill "none"
                 :stroke-width 2)

  ;; Add text centered in the box
  (svg-text svg "TODO"
            :x (/ width 2)
            :y (/ height 2)
            :text-anchor "middle"
            :dominant-baseline "middle"
            :font-size 14)

  ;; Insert into current buffer
  (insert-image (svg-image svg)))
```

But if I run it on Android (i.e., paste it into the *scratch* buffer and
evaluate it), the box shows up, but the text does not.

I'm wondering if this is a known limitation, or if there is something I can
do to make the text appear?

TIA

Joost


-- 
Joost Kremers
Life has its moments
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.