ios - How do I add a style? -
how add style font?
golabel.font = uifont(name: "apple sd gothic neo" , size: 40)
i've tried
golabel.font = uifont(name: "apple sd gothic neo-thin" , size: 40)
but went straight system font size 17.
you should represent font name following:
golabel.font = uifont(name: "applesdgothicneo-thin" , size: 40)
you can available font names families ('apple sd gothic neo' in example) with:
uifont.fontnamesforfamilyname("apple sd gothic neo")
for example, when print that, see:
[applesdgothicneo-bold, applesdgothicneo-thin, applesdgothicneo-ultralight, applesdgothicneo-regular, applesdgothicneo-light, applesdgothicneo-medium, applesdgothicneo-semibold]
Comments
Post a Comment