vue-zawuni

1.0.2 • Public • Published

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

License

The MIT License (MIT). Please see License File for more information.

Readme

Keywords

Package Sidebar

Install

npm i vue-zawuni

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

45.6 kB

Total Files

10

Last publish

Collaborators

  • nyinyilwin