friends.nicoのマイナーな機能に対応

This commit is contained in:
tateisu 2018-12-07 06:12:20 +09:00
parent 8a78790ee0
commit 816e7bbec6
6 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
package jp.juggler.util
import android.graphics.Typeface
import jp.juggler.subwaytooter.R
import uk.co.chrisjenx.calligraphy.CalligraphyConfig
import uk.co.chrisjenx.calligraphy.CalligraphyTypefaceSpan
//import uk.co.chrisjenx.calligraphy.CalligraphyConfig
//import uk.co.chrisjenx.calligraphy.CalligraphyTypefaceSpan
fun initializeFont(){
CalligraphyConfig.initDefault(
CalligraphyConfig.Builder()
.setFontAttrId(R.attr.fontPath)
.build()
)
}
fun fontSpan(tf : Typeface) : Any = CalligraphyTypefaceSpan(tf)

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB