Skip to content

PHPJunior/vue-zawuni

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Font Converter for Zawgyi and Unicode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published