Is is possible to create custom compound fonts with `set-font-rules`?

I am looking for a way to specify different fonts for Latin characters and CJK ones. So far, I have been trying out set-font-rules without success, but it seems indeed possible if I am not mistaking progs/fonts/fonts-composite.scm, which appears to apply different fonts to different character maps:

(set-font-rules
  '(((modern $v $a $b $s $d)
     (compound (ec (roman $v $a $b $s $d))
	       (la (cyrillic $v $a $b $s $d))
           ;; ...
	       (oriental (ipa $v $a $b $s $d))
	       (any (roman $v $a $b $s $d))))))

Is is possible to create custom compound fonts with set-font-rules? If not, is there any other way to do this? Thanks!

1 Like

I am curious on how set-font-rules works. I could not figure it out from the code. Could you explain me what these code lines do?
Sorry that this is not an answer :slight_smile: