Skip to content
This repository was archived by the owner on Oct 23, 2020. It is now read-only.

Allow the setting of custom typefaces for FloatingActionMenu#223

Merged
Clans merged 1 commit intoClans:masterfrom
remind101:master
May 24, 2016
Merged

Allow the setting of custom typefaces for FloatingActionMenu#223
Clans merged 1 commit intoClans:masterfrom
remind101:master

Conversation

@objcode
Copy link

@objcode objcode commented Mar 1, 2016

Throws exception if font fails to load.

String customFont = attr.getString(R.styleable.FloatingActionMenu_menu_labels_customFont);
try {
if (!TextUtils.isEmpty(customFont)) {
mCustomTypefaceFromFont = Typeface.createFromAsset(getContext().getAssets(), String.format("%s", customFont));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why String.format? I'm afraid of localization issues

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copypasta, removing.

@kotor-le-chat
Copy link

👍 otherwise

@Clans Clans added this to the 1.6.4 milestone May 24, 2016
@Clans Clans merged commit e130e5d into Clans:master May 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants