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

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -