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
Add a ment  | 

2 Answers 2

Reset to default 9

Here 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