႐ိုးရွင္းေသာ ျမန္မာ Font Embedding [Offline+Standalone]

ျမန္မာေဖာင့္ကို Embed လုပ္ဖို႕လိုလာလို႕ ထုံးစံအတိုင္း အရင္ဆုံး ကိုေစတန္ရဲ့ Site ေပၚမွာပဲ http://mmwebfonts.comquas.com သြားျပီး ေလ့လာခဲ့ပါတယ္။ အဲဒီမွာေတြ႕တာက ဥပမာ- ေဇာ္ဂ်ီ ဆိုပါေတာ့။ HTML Header ထဲမွာ -

<link href='http://mmwebfonts.comquas.com/fonts/?font=zawgyi' rel='stylesheet' type='text/css'/>

အဲဒါကို CSS ထဲမွာေအာက္ပါအတိုင္း-

font-family: Zawgyi-One;

.. ေခၚသုံးရမယ္ေပါ့ဗ်ာ။ အဲဒါအစကေတာ့ မသိသာဘူးဗ်။ ေနာက္မွ ကြၽန္ေတာ္ Font Embedding ကို အင္တာနက္မရွိပဲ (သို႕) mmwebfonts ဆိုက္ဒ္နဲ႕ Connection မရွိပဲ .. Standlone (Offline) Embed လုပ္ဖို႕လိုလာတဲ့အခါ မွ-- အထက္ပါနည္းလမ္းက ဘယ္လိုမွအလုပ္မလုပ္မွာကို အဲေတာ့မွ သတိထားမိသြားတယ္။ (အစကဒီလိုပဲ အလြယ္ လုပ္လိုက္႐ုံမို႕လို႕ပါ။)

အဲေတာ့မွကြၽန္ေတာ္ ကိုေစတန္ရဲ့ Source ကို Github (https://github.com/saturngod/mmwebfonts) ကေနယူျပီး ဖတ္ၾကည့္လိုက္မိတယ္ဗ်။ အဲဒီမွာသြားေတြ႕တာက ကိုေစတန္က Google Analytics Tracker ေတြပါေရာထည့္ထားတာ ေတြ႕ရတယ္။

ဘာလို႕လဲဗ်ာ? Tracking လုပ္တာ User ေတြကိုလဲ အသိေပးမထားဘူး။ ျပီးေတာ့ Connection က GA Tracking လုပ္ျပီးမွ ျပန္ျပန္လာတာဆိုေတာ့ အနည္းဆုံး ၂ ဆ ေလာက္ေတာ့ပိုေႏွးသြားျပီ။ ကဲထားပါေတာ့ဗ်ာ။ ကြၽန္ေတာ္အျမင္ကိုေျပာတာပါ။ လက္ေတြ႕ျပႆနာက Offline Embedding လုပ္လို႕ရဖို႕ပါ။ ဒီအတိုင္းဆို ကိုေစတန္ရဲ့ (Website ေပၚက) နည္းလမ္းနဲ႕ Offline Embedding လုပ္လို႕မရပါဘူး။ (Internet ရွိမွကိုရမွာပါ။)

ဒီေတာ့ဗ်ာ.. ျမန္မာ Font ေတြကို Offline Embedding (သို႕) ကိုယ့္ Website Folder ထဲက Font File ကိုပဲျပန္ျပီး Embed လုပ္လို႕ရမယ့္ နည္းလမ္း လြယ္လြယ္ေလးကို Share လိုက္ပါတယ္

ဥပမာ- ေဇာ္ဂ်ီ အတြက္ဆိုပါေတာ့။

  • အရင္ဆုံးလိုတဲ့ ဖိုင္ ၂ ဖိုင္ ( "zawgyi.eot" + "zawgyi.ttf" ) ကို Download ဆြဲ။ (ကိုေစတန္ေပးတားတဲ့ Github Source ထဲမွာလဲရွိပါတယ္ (သို႕) ေအာက္မွာလဲ Download လို႕ရပါတယ္။)
  • ျပီးေတာ့.. ကိုယ့္ Website ရဲ့ ဥပမာ- "fonts" ဆိုတဲ့ Folder ထဲမွာထား။ (Upload ျပန္လုပ္)
  • အဲဒီေနာက္ CSS ထဲမွာ--

@font-face {
        font-family: 'Zawgyi-One';
        src: url('fonts/zawgyi.eot');
        src: local('Zawgyi-One'), url('fonts/zawgyi.ttf') format('truetype');
    }

** ဖိုင္ ၂ ဖိုင္ကို ကိုယ္ၾကိဳက္တဲ့ေနရာမွာထားလို႕ရပါတယ္။ 'fonts' ဆိုတဲ့ေနရာမွာ Path အမွန္ေျပာင္းေပးဖို႕ပဲလိုပါတယ္။

ဒါပါပဲ!! ရလာမယ့္ အက်ိဳးဆက္ကေတာ့ --

  • ၾကိဳက္ရာ Mobile (or) PC အေပၚမွာ Zawgyi Font မရွိလဲ ေပၚမွာပါ
  • ကို Saturngod ဘက္က mmwebfont ဝက္ဘ္ဆိုက္ဒ္ ေဒါင္းေနရင္လဲ ရမွာပါ
  • Offline Embedding (Internet မရွိလဲ) Local Network Project ေတြအတြက္ ရမွာပါ
  • Rely Connection မရွိေတာ့တဲ့အတြက္ ကိုေစတန္ရဲ့ နည္းလမ္းထက္ အဆေပါင္းမ်ားစြာပိုျမန္မွာပါ
  • Tracking အလုပ္မခံရႏိုင္ေတာ့ပါဘူး

Note: ကြၽန္ေတာ္လဲသုံးေနရင္း ေတြ႕လာတာေလးကို အားလုံးအဆင္ေျပေအာင္ Share ေပးတာပါ။ ကြၽန္ေတာ္ကိုယ္တိုင္လဲ တီထြင္ထားရတဲ့ နည္းလမ္းမဟုတ္သလို၊ ဘယ္သူ႕ကိုမွလဲ ထိခိုက္ေစလိုျခင္းမရွိပါဘူး။ Native CSS Trick ေတြပါပဲ။


Regards,

Arkar w.m.h

Tags: embed, font, mmwebfont, myanmar, unicode, zawgyi

Views: 326

Attachments:

Reply to This

Replies to This Discussion

I can't do.. where should i put font folder? I dun know why? i am using wp.

You can upload via FTP or via Hosting server file manager and create new folder (directory) and put there.
Or you can use MyFtp Plugin for Wordpress for file upload too.

IT-KOKO said:

I can't do.. where should i put font folder? I dun know why? i am using wp.

IT-KOKO, you just need to know the very basic knowledge.

  • Just put the 2 files inside any folder you like (or create a new folder anywhere).
  • Then, you need to point that files inside the CSS.

Thats all!

Now your website will be appearing with Myanmar Fonts on any devices (with or without Myanmar Fonts inside).


IT-KOKO said:

I can't do.. where should i put font folder? I dun know why? i am using wp.

RSS

Latest Activity

Joe commented on Hein Min Htet Kyaw's group Microsoft Certified
19 hours ago
Joe joined Hein Min Htet Kyaw's group
19 hours ago
kyisoetun posted a status
"လတ္ထပ္ၿပီးစီးျခင္း"
20 hours ago
kyisoetun posted a status
"လတ္ထပ္ၿပီးစီးျခင္း"
20 hours ago
kyisoetun posted a status
"ကၽြန္ေတာ္မိန္းမ"
20 hours ago
sungelay left a comment for Steve_Maung
21 hours ago
Profile Iconyenaungkyaw, yu nandar, sayapaing@gmail.com and 16 more joined MyanmarITPro - A Social Network for Myanmar IT Professionals
22 hours ago
Jake commented on Jake's blog post Online Payment - Part 1 (Zawgyi font)
22 hours ago
Wai Lynn Oo commented on Jake's blog post Online Payment - Part 1 (Zawgyi font)
yesterday
Nyi Nyi Aung replied to Nyi Nyi Aung's discussion iPhone 4S GSM Signal Loss
Saturday
Nyi Nyi Aung and Arakan Tinwin are now friends
Saturday
U Win Myint posted a discussion
Friday
Wayne replied to Aung Than U's discussion Search Engine မွာရွာရင္ ကၽႊန္ေတာ္တို႔ ကုမၼဏီရဲ႕ ၀က္ဆိုဒ္ကို အေပၚဆံုးမွာ ျမင္ခ်င္လို႔ပါ... Asp.net နဲ႔ ေရးထားတဲ႔ ဆိုဒ္ပါ..သိရင္ ေျပာျပေပးၾကပါ senior မ်ားခင္ဗ်ာ.....
Friday
Moe Lay liked manawphyulay's blog post အင္တာနက္သံုးျခင္းျဖင့္ ဘာေတြအက်ဳိးေက်းဇူးရရွိေစမည္နည္း
Friday
Aung Than U posted a discussion
Friday
Aung Than U replied to Aung Than U's discussion For Joomla module
Friday

© 2012   Created by Ko Chit.

Badges  |  Report an Issue  |  Terms of Service