Removing trace and improving text positions

This commit is contained in:
MattTuttle
2014-08-04 10:01:01 -05:00
parent c2e73d7e9c
commit f1f5497b9e
2 changed files with 5 additions and 4 deletions

View File

@@ -79,7 +79,6 @@ class TextField {
}
trace(width);
x -= width;
}
@@ -206,17 +205,17 @@ class Main extends Application {
textFields.push(new TextField ("صِف خَلقَ خَودِ كَمِثلِ الشَمسِ إِذ بَزَغَت يَحظى الضَجيعُ بِها نَجلاءَ مِعطارِ", 24,
new TextFormat (RightToLeft, ScriptArabic, "ar"),
new Font ("assets/amiri-regular.ttf"),
context, 600, 150));
context, window.width - 20, 100));
textFields.push(new TextField ("The quick brown fox jumps over the lazy dog.", 16,
new TextFormat (LeftToRight, ScriptLatin, "en"),
new Font ("assets/amiri-regular.ttf"),
context, 50, 50));
context, 20, 20));
textFields.push(new TextField ("", 32,
new TextFormat (TopToBottom, ScriptHan, "ch"),
new Font ("assets/fireflysung.ttf"),
context, 100, 300));
context, 50, 150));
switch (context) {

View File

@@ -4,6 +4,8 @@
<meta title="TextRendering" package="com.example.textrender" version="1.0.0" company="Company Name" />
<app main="Main" path="Export" file="TextRendering" />
<window width="512" height="288" />
<source path="Source" />
<haxelib name="lime" />