give CodeEdit node ability to set font for individual strings #4772
Replies: 1 comment 5 replies
-
Related to #1781 (which predates the TextEdit-CodeEdit split).
It's difficult to add properly, as different fonts will have different metrics. You can make it easier by only supporting fonts with the same metrics within a given CodeEdit (e.g. monospace or uniwidth1 fonts only). This is usually good enough for code editors, but it won't suffice for those looking to create WYSIWYG editors, especially if they want to have different text sizes at the same time. Footnotes
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, there is no way to set the font of a particular piece of text within a CodeEdit node.
This would be very useful for code editors and the like, particularly for applications that imply style (markdown, LaTeX). This might be best included as part of the CodeHighlighter node.
How easy to add would a feature like this be?
Beta Was this translation helpful? Give feedback.
All reactions