IgniteUI / ignite-ui

Ignite UI for jQuery by Infragistics
https://bit.ly/2kuu1fT
Other
477 stars 83 forks source link

[igHtmlEditor] The Japanese font "MSゴシック" and "MS明朝" is not applied to the text. #2088

Closed norikois closed 3 years ago

norikois commented 3 years ago

Description

[igHtmlEditor] The font is not applied.

Steps to reproduce

  1. Open the attached sample file.
  2. Select the whole text "日本語Aa".
  3. Open the font family drop down and select "MSゴシック".
  4. Open the font family drop down and select "MS明朝".

Result

Step3: The look of the selected text is not of "MSゴシック". Step4: The look of the selected text is not of "MS明朝".

Expected result

Step3: The look of the selected text should be of "MSゴシック". Step4: The look of the selected text should be of "MS明朝".

Notes

The correct font family name is "MS ゴシック" (M(U+FF2D)S(U+FF33), a space (U+0020) and "ゴシック") and "MS 明朝" (M(U+FF2D)S(U+FF33), a space (U+0020) and "明朝"), but when you see the HTML source, you can see "MSゴシック" (M(U+004D) S (U+0053), without a space and "ゴシック") and "MS明朝" (M(U+004D) S (U+0053), without a space and "明朝") is applied to font-family instead. This difference might be the cause.

Attachments

Attach a sample if available, and screenshots, if applicable.
CAS-33547-Sample2.zip