Closed SqrtMinusOne closed 1 year ago
Try running with telega-use-svg-base-uri
explicitly set to nil
before loading telega. I've heard about systems with librsvg disallowing images embedding
Ah, you've already tried this. Make sure image file is accessible by telega
But looks like this is some deep issue, not related to telega directly
Well, I've nuked and re-created the straight folder and the Emacs profile. This helped.
Strange.
So, the issue seems to be librsvg
. Now multi-character emojis are displayed like that:
The version that gobbles telega avatars displays these emojis correctly, and this is the only thing that changed in the emacs definition: https://github.com/guix-mirror/guix/commit/5834953573a00793fbee8918d9d53897e25fa363.
emacs-next
renders both emojis and avatars correctly, but it has other font issues on my setup, namely that something seems to reset the fonts after initialization, and set-frame-font
resolves the italic version of my main font instead of the normal one... And it's still 29.0.92 and not 29.1 on Guix, maybe this has something do with it.
I'll wait for the proper 29.1 definition, I guess.
Non-generated avatars are no longer displayed on my machine. Autogenerated letters in circles work fine.
Telega Setup
OS: Guix System Emacs: GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.16.0) Features: svg ffmpeg Telega: telega v0.8.151 (TDLib v1.8.15-GITDIR-) (telega-server v0.8.2)
Current Behavior
The value of the
display
property on avatars seems to be correct (runningC-u C-x =
on the avatar at "Saved Messages"):There's an image at
~/.telega/profile_photos/5217817268556251362.jpg
, which is the correct image. Tracing shows thattelega-avatar--create-image
outputs the sameimage
form as above.Steps to Reproduce
What I've done in attempt to fix the issue:
~/.telega
tdlib
on commit53888437cf11aca258aae7e76552a38c1750d6e7
telega.el
andtelega-server
on commit2e196820c9331926b02045a3ba9e19fc49846d29
telega-use-svg-base-uri
tonil
Then there's
<image xlink:href="data:image/base64,..." ...></image>
instead of the image path, but it still doesn't work :-(Config
```lisp (defvar bootstrap-version) (let ((bootstrap-file (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) (bootstrap-version 5)) (unless (file-exists-p bootstrap-file) (with-current-buffer (url-retrieve-synchronously "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el" 'silent 'inhibit-cookies) (goto-char (point-max)) (eval-print-last-sexp))) (load bootstrap-file nil 'nomessage)) (straight-use-package 'use-package) (eval-when-compile (require 'use-package)) (use-package evil :straight t :init (setq evil-want-integration t) (setq evil-want-C-u-scroll t) (setq evil-want-keybinding nil) (setq evil-search-module 'evil-search) (setq evil-split-window-below t) (setq evil-vsplit-window-right t) (unless (display-graphic-p) (setq evil-want-C-i-jump nil)) :config (evil-mode 1) ;; (setq evil-respect-visual-line-mode t) (evil-set-undo-system 'undo-tree)) (use-package evil-collection :straight t :after evil :config (evil-collection-init '(telega))) (use-package telega :straight t) ```(setq no-byte-compile t no-native-compile t)
to the aboveSo far couldn't figure out what goes wrong. Sounds like an issue with SVG rendering, but I have no clue where to dig further. I'll probably modify
telega-avatar--create-image
to always draw letters in circles to make it usable for now...Any ideas?