Copy link to clipboard
Copied
Simsun for fonts. Size 12
IE:
Chome:
chrome The font is bold and the display is incomplete.
How to solve?
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.
-------------
...Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
According to your description, there seems to be a problem with the Chrome browser.
But now many Chinese websites, the latest version of the Chrome browser, the font display is broken, then I can give the browser a bug and let them modify it?