You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The double byte character calculating is not correct so the diagram's width is not fitting. #513
i believe this is because the font we use does not support Hans characters, so the measurement will be off. I'm not sure it has anything to do with bytes
i am not good about golang
is this possible? misdirected?
func controlRune
case unicode.Hiragana #japanese
case unicode.Katakana #japanese
case unicode.Han #japanese and so on
dot.X += Face.Metrics().Ascent.Floor() + Face.Metrics().Descent.Floor()
Activity
alixander commentedon Dec 24, 2022
i believe this is because the font we use does not support Hans characters, so the measurement will be off. I'm not sure it has anything to do with bytes
I've created an issue for this:
#517
bo-ku-ra commentedon Dec 24, 2022
https://play.d2lang.com/?layout=dagre&script=4lJQUFAIBjtLITgxr1ghoCgfWcwjMQ8sjk2dgq4dujKrjJKSgmIrff30zJKM0iS95Pxc_cSU_KRUXVAoF-tDAyAjMU-3ODGvWB9sLBcgAAD__w%3D%3D
alixander commentedon Dec 28, 2022
actually i believe the core issue is that this is within markdown. for non-markdown, hans characters seem to render okay.
https://play.d2lang.com/?layout=dagre&script=erKj--XsFQq6dgpPZ897um4bF4QCCTzvW_lsx45nHf1IYk8bZz3ZO-fJjllWCs-mbni6dhkXIAAA__8%3D
bo-ku-ra commentedon Dec 28, 2022
https://play.d2lang.com/?layout=dagre&script=etzYNFBI1849tbgkMadEITk_JyexoDiVCxAAAP__&
alixander commentedon Dec 28, 2022
touché 🙂
bo-ku-ra commentedon Jan 28, 2023
i am not good about golang
is this possible? misdirected?