admin管理员组文章数量:1313786
I would to convert text to unicode bold format.
I found
- [U+1D5D4 - U+1D5ED] as BOLD CAPITAL [A - Z]
- [U+1D5EE - U+1D607] as BOLD CAPITAL [a - z]
How can I convert text to BOLD CAPITAL with unicode?
Thanks
I would to convert text to unicode bold format.
I found
- [U+1D5D4 - U+1D5ED] as BOLD CAPITAL [A - Z]
- [U+1D5EE - U+1D607] as BOLD CAPITAL [a - z]
How can I convert text to BOLD CAPITAL with unicode?
Thanks
Share Improve this question asked Sep 6, 2019 at 19:51 michelemichele 26.6k31 gold badges118 silver badges173 bronze badges 2- why not use font weight to achieve this? or are you looking for a JS solution only? – karthick Commented Sep 6, 2019 at 20:11
- Yes, I would generate unicode text that I can paste – michele Commented Sep 6, 2019 at 20:40
2 Answers
Reset to default 9Here is a quick code snippet which does what you are asking for:
let text = "This is a text: ABC";
function translate (char)
{
let diff;
if (/[A-Z]/.test (char))
{
diff = "
本文标签:
Javascript Convert text to bold unicode charsetStack Overflow
版权声明:本文标题:Javascript Convert text to bold unicode charset - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人,
转载请联系作者并注明出处:http://www.betaflare.com/web/1741946336a2406437.html,
本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论