Replies: 7 comments 4 replies
-
Possibly related #4139 |
Beta Was this translation helpful? Give feedback.
-
This is not a bug. Chancery and roundhand occupy the same code points in unicode, so it's entirely up to the font which one they pick. Some fonts have both, hidden behind stylistic sets https://typst.app/docs/reference/text/text/#parameters-stylistic-set, but there's no real consistency between exactly which one. |
Beta Was this translation helpful? Give feedback.
-
OK, thanks for the explanation. However I would argue, that there is no reason to introduce this inconsistency between normal and math mode. Why do they use a different stylistic set by default? I didn't change any font setting in the document otherwise.. Is this also the desired functionality? |
Beta Was this translation helpful? Give feedback.
-
Furthermore, the stylistic sets are not working for me in both normal and math mode. I am using New Computer Modern, where in the documentation on page 18 it is stated that the roundhand is located in stylistic set 1 and the default should be chancery. However in normal mode #text(stylistic-set: none)[#str.from-unicode(119967)] In math mode
|
Beta Was this translation helpful? Give feedback.
-
There is no inconsistency other than the text (Linux Libertine) and math (New Computer Modern Math) fonts making different choices. There is also the possibility of fallback (I haven't checked), since text fonts rarely include this glyph. |
Beta Was this translation helpful? Give feedback.
-
The documentation is talking about New Computer Modern Math specifically. There's no reason to expect the stylistic set works for the text font, especially since it's not even New Computer Modern by default. In fact, it would surprise me if the text font even includes that glyph (like I mentioned above). In general this kind of symbol is only supposed to be used in math mode. |
Beta Was this translation helpful? Give feedback.
-
Description
Copying the unicode character of a roundhand caligraphic D 𝒟 (U+1D49F) into normal mode text yields the correct character:
However if it is in math mode, the character is translated into chancery caligraphic.
Presumably, this is not isolated to D, but this was not tested.
This issue is probably located here: math styling file, and should be possible to solve by mapping the unicode table roundhand math variant from the wikipedia page in the file.
Reproduction URL
No response
Operating system
Linux
Typst version
Beta Was this translation helpful? Give feedback.
All reactions