Skip to content

Releases: MMAUG/MMFontLib

v1.3.0

11 Sep 03:17
Compare
Choose a tag to compare

What's new

A new FontUtils is added to set Typeface to a TextView or multiple TextViews .

    // TextView you want to set typeface
    TextView uniTextView = (TextView) findViewById(R.id.custom_uni_text);
    // Create a FontUtils instance. The Argument is a Context
    FontUtils fontUtils = new FontUtils(this);
    // Set Text to your TextView either here or in XML
    uniTextView.setText("သီဟိုဠ်မှ ဉာဏ်ကြီးရှင်သည် အာယုဝဍ္ဎနဆေးညွှန်းစာကို ဇလွန်ဈေးဘေးဗာဒံပင်ထက်
                             အဓိဋ္ဌာန်လျက် ဂဃနဏဖတ်ခဲ့သည်");

    // Set Typeface to your TextView by choosing the font name
    fontUtils.setTypeFace(Fonts.ZG, zgTextView);

    // You can set Typeface to several TextViews    
    fontUtils.setTypeFace(Fonts.ZG, TextView1, TextView2, TextView3);

You can see the list of available fonts here.

How to update

Just change the version number in your app build.gradle

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

v1.2.0

13 Aug 16:26
Compare
Choose a tag to compare

What's new

  • Fonts are served with FontCache because of this issue. Fix for #4

How to update

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

v1.1.0

20 Jul 12:52
Compare
Choose a tag to compare

Added two new fonts

  • NotoSansMyanmar Regular
  • NotoSansMyanmar Bold
      <org.mmaug.mmfont.Noto
          android:text="@string/uni_mm"
          android:textColor="@android:color/black"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"/>

      <org.mmaug.mmfont.NotoBold
          android:text="@string/uni_mm"
          android:textColor="@android:color/black"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"/>

Masterpiece is replaced by "working" version of Masterpiece Uniround. (Thanks Ko TMH and Ko Ravi)

Sample app now uses Ko Maung Maung San's Myanmar Pangram

device-2014-07-20-191103
device-2014-07-20-191021

Last, but not least, you can get the latest version via

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

Feel free to open issues and send us some PR.