How to work with Myanmar fonts?

There are two ways: natural (wrong) and pervert one.

Natural: Just use unicode. It simply work on Mac OS X and modern Android phone (with Unicode 5). However it is broken on older devices and ugly for native speakers.

Pervert one: Use ZawGyI font in Unicode mode.

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href='https://mmwebfonts.comquas.com/fonts/?font=myanmar3' />
	<link rel="stylesheet" href='https://mmwebfonts.comquas.com/fonts/?font=zawgyi' />
	<style type="text/css">
		.zawgyi{
			font-family:Zawgyi-One;
		}
		.unicode{
			font-family:Myanmar3,Yunghkio,'Masterpiece Uni Sans';
		}
	</style>
</head>
<body>
	<h3>This is for ZawGyI font</h3>
	<p class="zawgyi">
		၅၀၀MB ေဒတာၾကိဳသုံး<br />
	</p>
	<h3>This is for unicode (myanmar3) font</h3>
	<p class="unicode">
		၅၀၀MB ဒေတာကြိုသုံး<br />

	</p>
</body>
</html>

More information:

Mo

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *

*


Можно использовать следующие HTML-теги и атрибуты: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>