xulihang Well-Known Member Licensed User Longtime User Sep 28, 2018 #1 Hi, I have a sentence which mixes Chinese and English, like this: “我想你和我会成为好朋友,”Donkey咧嘴笑着说。 How can I set different font for different language? I have tried using this css: Code: Copy -fx-font-family: SimSun,Tahoma; SimSun is a Chinese font while Tahoma is an English one. However, only the first font will take effect.
Hi, I have a sentence which mixes Chinese and English, like this: “我想你和我会成为好朋友,”Donkey咧嘴笑着说。 How can I set different font for different language? I have tried using this css: Code: Copy -fx-font-family: SimSun,Tahoma; SimSun is a Chinese font while Tahoma is an English one. However, only the first font will take effect.
Erel B4X founder Staff member Licensed User Longtime User Sep 30, 2018 #2 Use TextFlow: https://www.b4x.com/android/forum/threads/class-textflow-similar-to-b4a-b4i-richstring.61237/ Upvote 0
Use TextFlow: https://www.b4x.com/android/forum/threads/class-textflow-similar-to-b4a-b4i-richstring.61237/