Skip to content

Commit

Permalink
[lib] Renamed method for getting type family...
Browse files Browse the repository at this point in the history
  • Loading branch information
mta452 committed Mar 31, 2018
1 parent 7450f00 commit 7bfefa4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2017 Muhammad Tayyab Akram
* Copyright (C) 2018 Muhammad Tayyab Akram
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -149,7 +149,13 @@ public static Object getTypefaceTag(Typeface typeface) {
}
}

public static TypeFamily getTypefaceFamily(String familyName) {
/**
* Looks for a type family having specified family name.
*
* @param familyName The name of the family.
* @return A type family having specified family name.
*/
public static TypeFamily getTypeFamily(String familyName) {
List<Typeface> entryList = new ArrayList<>();

synchronized (TypefaceManager.class) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private static void resolveStyle(ShapingRun shapingRun, int newStyle) {
}

private static void resolveTypeface(ShapingRun shapingRun, String familyName, TypeWidth typeWidth) {
TypeFamily typeFamily = TypefaceManager.getTypefaceFamily(familyName);
TypeFamily typeFamily = TypefaceManager.getTypeFamily(familyName);
if (typeFamily != null) {
shapingRun.typeface = typeFamily.getTypefaceByStyle(typeWidth, shapingRun.typeWeight, shapingRun.typeSlope);
} else {
Expand Down

0 comments on commit 7bfefa4

Please sign in to comment.