Skip to main content
Inspiring
November 13, 2023
Question

(AS3) Different fonts for each language in the text field

  • November 13, 2023
  • 1 reply
  • 409 views

I have a textfield with about 100000 characters.
Is there a way to display different fonts for each language in this field?
(For example) English=>"Arial", Hangul=>"Malkun Gothic"
If possible, please provide sample code.

    This topic has been closed for replies.

    1 reply

    JoãoCésar17023019
    Community Expert
    November 13, 2023

    Hi.

     

    You can create a new TextFormat instance, change the font property and apply this TextFormat instance to the target text field using the defaultTextFormat property.

     

    Regards,

    JC

    Inspiring
    November 14, 2023

    I think my question is wrong.
    The text field contains a mixture of English and Korean.
    In this case I am asking how to apply different fonts for each language.

    kglad
    Community Expert
    November 14, 2023

    you can mix different fonts in the same textfield, but it would be easier and cleaner to use different textfields for different languages if both languages are to be displayed concurrently.