Skip to content

Releases: arnavgupta180/AVFonts

0.1.2

23 Aug 16:03
Compare
Choose a tag to compare

What's that for

AVFonts allows you to do anything you want to do with the fonts anywhere and everywhere in the app.

Why should you use this?

AVFonts can easily swap the system font or specific font you are using with the new font throughout the app. You can increment or decrement font size if needed, too. Now there's no need to select custom fonts in the Interface Builder. Save time by simply configuring its size and style, and then change "system font" to your "new font" everywhere with a single line of code. It's that easy.

Usage

  1. import AVFonts to AppDelegate.

  2. In didFinishLaunchingwithOptions change the font :

a) This will swap/change font from system or currentFontName to newFontName everywhere in the app.

AVFonts.changeFont(toFont: "Avenir-Heavy")
AVFonts.swapFont(currentFont: "Avenir-Light", toFont: "Avenir-Heavy")
b) Font swap/change for types provided i.e. [ .button, .label, .textField, .textView] throughout the app.

AVFonts.changeFont(toFont: "Avenir-Heavy", [.button, .label])
AVFonts.swapFont(currentFont: "Avenir-Light", toFont: "Avenir-Heavy", [.button, .label])
c) increment/decrement your orignal font size.

AVFonts.changeFont(toFont: "Avenir-Heavy", [.button,.label,.textfield], increment: 2)
AVFonts.changeFont(toFont: "Avenir-Heavy", [.button,.label,.textfield], increment: -2)

AVFonts.swapFont(currentFont: "Avenir-Light", toFont: "Avenir-Heavy", [.button, .label, .textfield], increment: 2)
AVFonts.swapFont(currentFont: "Avenir-Light", toFont: "Avenir-Heavy", [.button, .label, .textfield, .textview], increment: -2)
3. Call AVFonts.applyAVFonts() to apply all the changes.

Font swap/change throughout app

23 Aug 02:11
Compare
Choose a tag to compare

Why to use this ?

'AVFonts is for swaping the font you are using with the new font throughout the app.You can increment or decrement your fontsize as per your reqiurements otherwise it will take the fontsize you are using for your old font

Fonts change throughout the ap

06 Aug 06:46
Compare
Choose a tag to compare

Why to use this ?

'AVFonts is for swaping the font you are using with the new font throughout the app.You can increment or decrement your fontsize as per your reqiurements otherwise it will take the fontsize you are using for your old font