Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting font color #2

Open
dozed opened this issue Feb 26, 2024 · 1 comment
Open

Setting font color #2

dozed opened this issue Feb 26, 2024 · 1 comment

Comments

@dozed
Copy link

dozed commented Feb 26, 2024

This is how preview-dvisgm currently renders latex math:

image

How can I change the font color? Changing "Preview Reference Face" does not seem to have an effect.

@dozed
Copy link
Author

dozed commented Mar 29, 2024

Some findings: it seems the SVG overlay inherits the foreground color of the first character.

Example:

Pasted image

This can be fixed by setting a :foreground your-color attribute on the overlay:

(overlay-put ov
	     'display
	     (list 'image
		   :type imagetype
		   :text text
		   :file image
		   :ascent 'center
		   :pointer 'hand
		   :foreground "#bbc2cf"
		   :scale 0.33))))

This results in all fragments having the same foreground color:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant