根据android 2.3,这个新版本支持一些 RTL 语言,例如阿拉伯语。但是,模拟器无法正确显示字体。在我写的代码中:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TextView txt = (TextView) findViewById(R.id.myText);
Typeface font = Typeface.createFromAsset(getAssets(), "Larabieb.ttf");
txt.setTypeface(font);
txt.setTextSize(26);
txt.setText("السلام علیک یا حبیبی");
}
但在输出中它显示分隔字符而不是连接字符。
如何连接角色?