ျမန္မာေဖာင့္ကို 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 လိုက္ပါတယ္။
ဥပမာ- ေဇာ္ဂ်ီ အတြက္ဆိုပါေတာ့။
@font-face {
font-family: 'Zawgyi-One';
src: url('fonts/zawgyi.eot');
src: local('Zawgyi-One'), url('fonts/zawgyi.ttf') format('truetype');
}** ဖိုင္ ၂ ဖိုင္ကို ကိုယ္ၾကိဳက္တဲ့ေနရာမွာထားလို႕ရပါတယ္။ 'fonts' ဆိုတဲ့ေနရာမွာ Path အမွန္ေျပာင္းေပးဖို႕ပဲလိုပါတယ္။
ဒါပါပဲ!! ရလာမယ့္ အက်ိဳးဆက္ကေတာ့ --
Note: ကြၽန္ေတာ္လဲသုံးေနရင္း ေတြ႕လာတာေလးကို အားလုံးအဆင္ေျပေအာင္ Share ေပးတာပါ။ ကြၽန္ေတာ္ကိုယ္တိုင္လဲ တီထြင္ထားရတဲ့ နည္းလမ္းမဟုတ္သလို၊ ဘယ္သူ႕ကိုမွလဲ ထိခိုက္ေစလိုျခင္းမရွိပါဘူး။ Native CSS Trick ေတြပါပဲ။
Regards,
Arkar w.m.h
Tags: embed, font, mmwebfont, myanmar, unicode, zawgyi
Permalink Reply by IT-KOKO on February 27, 2012 at 9:06am I can't do.. where should i put font folder? I dun know why? i am using wp.
Permalink Reply by leojack on February 27, 2012 at 4:28pm 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.
Permalink Reply by Arkar w.m.h on February 29, 2012 at 1:42am IT-KOKO, you just need to know the very basic knowledge.
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.
Wayne replied to Aung Than U's discussion Search Engine မွာရွာရင္ ကၽႊန္ေတာ္တို႔ ကုမၼဏီရဲ႕ ၀က္ဆိုဒ္ကို အေပၚဆံုးမွာ ျမင္ခ်င္လို႔ပါ... Asp.net နဲ႔ ေရးထားတဲ႔ ဆိုဒ္ပါ..သိရင္ ေျပာျပေပးၾကပါ senior မ်ားခင္ဗ်ာ.....© 2012 Created by Ko Chit.
