tizg

Font Embed in Android Titanium

ဒီနေ့ Titanium Mobile SDK အသစ်မှာ Android အတွက် font embed ပါလာပါပြီ။ ဒါကြောင့် Titanium ကို အသုံးပြုပြီး မြန်မာ စာ အသုံးပြုတဲ့ iphone, android app တွေ ရေးလို့ရပါပြီ။ အရင် version တုန်းကတော့ iPhone တစ်ခုတည်းမှာ ရခဲ့ပေမယ့် အခု version မှာတော့ Android အတွက်ပါ ရလာပါပြီ။

How to

Titanium မှာ project အသစ် တစ်ခု ဆောက်လိုက်ပါ။

Project Folder အောက်က Resources Folder အောက်မှာ fonts ဆိုတဲ့ folder တစ်ခု ဆောက်လိုက်ပါ။ ပြီးရင် ဇော်ဂျီ ttf font ကို ထည့်လိုက်ပါ။ Android မှာ unicode font တွေ အသုံးပြုလို့ မရသေးပါဘူး။

ပြီးရင် app.js မှာ ပြင်ပါမယ်။ Default မှာပါတဲ့ code တွေ အတိုင်းထားပြီး line 21 က label ကို font ပြောင်းပါမယ်။

အဲဒါကို ကျွန်တော် ဒီလို ပြင်လိုက်ပါတယ်။

ပြီးရင် Save လုပ်ပြီး Android Emulator မှာ run ကြည့်လိုက်ရအောင်ဗျာ။

အောက်ကလိုမျိုး ဇော်ဂျီ font ကို မြင်ရပါလိမ့်မယ်။

This entry was posted in Android, Mobile and tagged , on by .

About saturngod

iOS Game Developer အနေနဲ့ လက်ရှိ အလုပ်လုပ်နေတယ်။ http://www.saturngod.net မှာ blog ရေးတယ်။ နောက်ပြီး http://en.saturngod.net မှာလည်း ရေးဖြစ်တယ်။ twitter မှာဆိုရင်တော့ http://www.twitter.com/saturngod မှာ ရှိပါတယ်။

4 thoughts on “Font Embed in Android Titanium

  1. luyo

    App Id ဆိုတာက ဘာကိုညွန်းခိုင်းတာလဲခင်ဗျ…
    တစ်ချက်လောက်ရှင်းပြပေးပါခင်ဗျ..
    ကြိုက်တဲ့နာမည်ပေးလို့ရလားဗျ…

    Reply
  2. Pingback: Font embed in iPhone Titanium « MYSTERY ZILLION Blog

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>