Skip to main content
zhao jiemin
Inspiring
September 11, 2018
Answered

The font effect of Flash display is different between Chrome browser and IE browser.

  • September 11, 2018
  • 1 reply
  • 675 views

Simsun for fonts. Size 12

IE:

Chome:

chrome The font is bold and the display is incomplete.

How to solve?

    This topic has been closed for replies.
    Correct answer zhao jiemin

    Hello. I did use the system font. But I found that:

    If the code is like this.

    -----------------------------------------------------------------------

    var format:TextFormat = new TextFormat();

    format.font = "Simsun";

    -----------------------------------------------------------------------

    Will cause the fonts displayed by IE and Chrome to be different.

    The old version of Chrome, the same font as IE, the new version of Chrome, the font is different.

    After changing to this, it becomes the same.

    -----------------------------------------------------------------------

    var format:TextFormat = new TextFormat();

    format.font = "宋体";

    -----------------------------------------------------------------------

    What caused it? Font settings can't be used in English?

    1 reply

    jeromiec83223024
    Inspiring
    September 14, 2018

    It sounds like you are using a system font instead of an embedded font.  You can embed a font if you want consistent rendering across all operating system and browser targets, but this makes the SWF larger.  Alternatively, you can use system fonts, but there is no guarantee that they will be consistent across configurations.

    zhao jiemin
    zhao jieminAuthorCorrect answer
    Inspiring
    September 15, 2018

    Hello. I did use the system font. But I found that:

    If the code is like this.

    -----------------------------------------------------------------------

    var format:TextFormat = new TextFormat();

    format.font = "Simsun";

    -----------------------------------------------------------------------

    Will cause the fonts displayed by IE and Chrome to be different.

    The old version of Chrome, the same font as IE, the new version of Chrome, the font is different.

    After changing to this, it becomes the same.

    -----------------------------------------------------------------------

    var format:TextFormat = new TextFormat();

    format.font = "宋体";

    -----------------------------------------------------------------------

    What caused it? Font settings can't be used in English?

    jeromiec83223024
    Inspiring
    September 17, 2018

    That's a good question.  I'll have to ask around to be 100% sure, but I believe that we just request the string that you provide, and the browser and/or operating system's underlying font subsystem is actually making the decision about what the best match is.