How is the Calligraphy library(Custom fonts in Android ) work internally? -
i want know internal architecture of calligraphy library mean how internally wrapping textview , applying costume ttf font style. have gone through link - https://github.com/chrisjenx/calligraphy. have added code application class
calligraphyconfig.initdefault(new calligraphyconfig.builder() .setdefaultfontpath("fonts/lato-regular.ttf") .setfontattrid(r.attr.fontpath) .build() );
i have added code in activity
@override protected void attachbasecontext(context newbase) { super.attachbasecontext(calligraphycontextwrapper.wrap(newbase)); }
so how attachbasecontext(context context) wrapping activity textview font style.
Comments
Post a Comment