From f1f5497b9eb5fa035af2ae3e944c09bf87e61142 Mon Sep 17 00:00:00 2001 From: MattTuttle Date: Mon, 4 Aug 2014 10:01:01 -0500 Subject: [PATCH] Removing trace and improving text positions --- samples/TextRendering/Source/Main.hx | 7 +++---- samples/TextRendering/project.xml | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/samples/TextRendering/Source/Main.hx b/samples/TextRendering/Source/Main.hx index 60423bf16..67f7df65c 100644 --- a/samples/TextRendering/Source/Main.hx +++ b/samples/TextRendering/Source/Main.hx @@ -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) { diff --git a/samples/TextRendering/project.xml b/samples/TextRendering/project.xml index 2f6612edb..abee3fd07 100644 --- a/samples/TextRendering/project.xml +++ b/samples/TextRendering/project.xml @@ -4,6 +4,8 @@ + +