AdjectivePronoun · 2022-07-04 14:07
Hagge5 · 2022-07-04 14:30
It's a more annoying problem than I wish it was. You could try https://github.com/rolandwalker/unicode-fonts , which worked for increasing Unicode coverage for me, though I elected to not include it in my personal config due to the relatively lengthy setup.
AdjectivePronoun · 2022-07-04 14:35
Thanks! With the startup speed hit, it might be worth knowing "these unicode boxes are correct and the html export is correct..."
javajunkie314 · 2022-07-04 15:08
If it's just those codepoints you need, you can set fonts for specific ranges of Unicode codepoints. E.g., in [my Spacemacs config](https://github.com/chrisbouchard/dotfiles/blob/9bfbe4566520d9e5d8ca998901e120564982d5eb/home/.spacemacs#L606), I set a font for the free-use codepoints often used for Tengwar.
ss141309 · 2022-07-04 15:12
Try setting something like this in your init file:
```
(set-fontset-font t 'old-persian
(font-spec :family "Noto Sans Old Persian"))
```
Does this work?
pinacoelho · 2022-07-04 15:49
So… do you comment your .el files in Quenya, Telerin, or Sindarin?
javajunkie314 · 2022-07-04 16:14
I always comment _Aiya Eärendil Elenion Ancalima!_ before a dark web of elisp.
AdjectivePronoun · 2022-07-04 19:18
[~~Partial success!~~](https://imgur.com/gS81Szs) ~~Now I just need to mix this answer with the partial \`(set-fontset-font)\` suggestion above to only render this for the relevant characters.~~
I need to work on reading comprehension. For whatever reason I don't have it quite yet with that solution, unfortunately, [as I comment here](https://www.reddit.com/r/emacs/comments/vr87tv/font_question_how_can_i_get_emacs_to_render_the/ieutf0d/?utm_source=reddit&utm_medium=web2x&context=3)
EDIT 3: It's a Doom emacs problem. Doom isn't letting me do the set-fontset-font 😭. The solution is just use doom's \`unicode\` package... oh man...
AdjectivePronoun · 2022-07-04 19:41
~~I am banging my head against a metaphorical wall right now trying to get it to work. \`describe-char\` tells me the character script is \`old-persian\`:~~
~~position: 10274 of 157466 (7%), column: 16character: 𐏃 (displayed as 𐏃) (codepoint 66499, #o201703, #x103c3)charset: unicode (Unicode (ISO10646))code point in charset: 0x103C3script: old-persiansyntax: w which means: wordcategory: .:Base, L:Strong L2Rto input: type "C-x 8 RET 103c3" or "C-x 8 RET OLD PERSIAN SIGN HA"buffer code: #xF0 #x90 #x8F #x83file code: #xF0 #x90 #x8F #x83 (encoded by coding system utf-8-unix)display:~~ **~~no font available~~**~~so I've set it up~~ [~~a la this website~~](https://gist.github.com/alanthird/7152752d384325a83677f4a90e1e1a05#file-noto-fonts-el-L66) ~~with variations on~~
~~\`(set-fontset-font t 'old-persian "Noto Sans Old Persian Regular")\`~~
~~\`(set-fontset-font t 'old-persian "Noto Sans Old Persian")\`~~
~~and similar to your suggestion~~
~~(set-fontset-font "fontset-default" '(#x103c3 . #x103c4) "Noto Sans Old Persian Regular")Like a lot of things, it's a surprisingly hard problem that will end up having an easy solution, but I'm at a loss at the moment.~~
​
​
EDIT It's a Doom emacs problem. Doom isn't letting me do the set-fontset-font 😭. The solution is just use doom's \`unicode\` package... oh man...
AdjectivePronoun · 2022-07-04 19:55
Solutions below are great (thank everyone who posted!)
​
If you're using Doom emacs, you need to enable the \`unicode\` module in the init.el file. Then everything magically works. Doom doesn't let you use \`set-fontset-font\` for some reason. That was a colossal waste of time :-(
jeetelongname · 2022-07-04 20:03
Doom does not stop you from doing anything. It just may fiddle with things in a way that does not allow you to do it the traditional way.
I am not sure of the problem here but you can look into what the module does to gain some insight and so forth.
In any case I am glad you came to a solution! Next time you may get some better help (read doom oriented help) on [the discourse forum](https://discourse.doomemacs.org)