Skip to content

hanmyohtwe/MMFontLib

 
 

Repository files navigation

MMFont

Myanmar font embedded TextViews. Currently, it supports

  • Myanmar 3
  • Masterpiece
  • MyMyanmar
  • Yunghkio
  • Zawgyi One
  • NotoSans Myanmar Regular
  • NotoSans Myanmar Bold

Sample

Checkout sample app.

Screenshot 1

Screenshot 2

Quick Start

MMFont Lib is pushed to Maven Central as an AAR, so you just need to add the following dependency to your build.gradle.

dependencies {
    compile 'org.mmaug.mmfont:library:1.1.0'
}

Replace your TextView with embedded view.

<!-- Myanmar3 Font -->
<org.mmaug.mmfont.MM3
    android:id="@+id/tv_mm3"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textSize="25sp" />

<!-- Masterpiece Uni Round Font -->
<org.mmaug.mmfont.MSP
    android:id="@+id/tv_msp"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textSize="25sp" />

<!-- MyMyanmar Universal Font -->
<org.mmaug.mmfont.MyMM
    android:id="@+id/tv_mymm"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textSize="25sp" />

<!-- Noto Sans Myanmar Regular Font -->
<org.mmaug.mmfont.Noto
    android:id="@+id/tv_noto"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textSize="25sp" />

<!-- Noto Sans Myanmar Bold Font -->
<org.mmaug.mmfont.NotoBold
    android:id="@+id/tv_noto_bold"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textSize="25sp" />

<!-- Yunghkio Font -->
<org.mmaug.mmfont.YGK
    android:id="@+id/tv_ygk"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textSize="25sp" />

<!-- Zawgyi-One Font -->
<org.mmaug.mmfont.ZG
    android:id="@+id/tv_zg"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textSize="25sp" />

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

Copyright 2014 Myanmar Android User Group(MMAUG)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Fonts are respectively copyrighted by font owners.

About

Myanmar Font Embedded TextViews

Resources

Stars

Watchers

Forks

Packages

No packages published