svgbob
svgbob copied to clipboard
Mishandling of emoji character size
svgbob has problems when using certain characters, notably multipoint emoji like the helmet with white cross:
.~~~~~~~~~~~~~~~~~~~~.
! ⛑️ Problem Emoji :
'~~~~~~~~~~~~~~~~~~~~'
The spacing gets out of whack, make the ascii drawing not mach up in line spacing with the output
You need to have at least 2 drawing characters next to each other in order to effectively infer the shape.
As of the current algorithm, the ! or : could be used in a text
.~~~~~~~~~~~~~~~~~~~~.
! ⛑️ Problem Emoji :
! :
'~~~~~~~~~~~~~~~~~~~~'
This might be a better example of the problem I'm describing:
.~~~~~~~~~~~~~~~~~~~~.
! ⛑️Problem Emoji :
! ⛑️ Problem Emoji :
! ⛑️ Problem Emoji :
! ⛑️ Problem Emoji :
'~~~~~~~~~~~~~~~~~~~~'
I should also not that I'm using 0.4.1 which has even more problems than 0.5.0-alpha.3
I see, it looks like a case of width.
I'm not sure about the characteristic of this emoji, svg seems to render it wrong when alone. However, when the emoji is together with the text, it would render just fine. For the mean-time this can be improve with text-escaping.
.~~~~~~~~~~~~~~~~~~~~~.
! "⛑️Problem Emoji" :
! "⛑️ Problem Emoji" :
! "⛑️ Problem Emoji" :
! "⛑️ Problem Emoji" :
'~~~~~~~~~~~~~~~~~~~~~'