vue-zawuni
v1.0.2
Published
Font Converter for Zawgyi and Unicode
Downloads
19
Readme
Vue-Zawuni
Font Converter for Zawgyi and Unicode
Installation
Demo
NPM
npm install --save vue-zawuni
CDN
<script src="https://cdn.jsdelivr.net/npm/vue-zawuni/dist/vue-zawuni.min.js"></script>
When used with a module system :
import Vue from 'vue'
import VueZawUni from 'vue-zawuni'
Vue.use(VueZawUni)
Mount with ssr :
// If used in Nuxt.js / SSR, you should keep it only in browser build environment
if (process.browser) {
const VueZawUni = require('vue-zawuni/dist/ssr')
Vue.use(VueZawUni)
}
Usage
<link rel="stylesheet" href='https://mmwebfonts.comquas.com/fonts/?font=mon3' />
<link rel="stylesheet" href='https://mmwebfonts.comquas.com/fonts/?font=zawgyi' />
<style>
.unicode {
font-family: "Pyidaungsu","MON3 Anonta 1" !important;
}
.zawgyi {
font-family: "Zawgyi-One" !important;
}
</style>
Zawgyi => Unicode
Example:
<span class="unicode">{{ zawgyi | zawuni('unicode') }}</span>
Unicode => Zawgyi
Example:
<span class="zawgyi">{{ unicode | zawuni('zawgyi') }}</span>
Credits
- Rabbit Converter
- All Contributors
License
The MIT License (MIT). Please see License File for more information.