Skip to content

Commit 99cc2fb

Browse files
committed
[lib] Wrote missing documentation
1 parent bb4ad6b commit 99cc2fb

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

tehreer-android/src/main/java/com/mta/tehreer/font/FontFile.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ private void loadTypefaces() {
142142
mTypefaces = allTypefaces;
143143
}
144144

145+
/**
146+
* Returns named typefaces of this font file.
147+
*
148+
* @return Named typefaces of this font file.
149+
*/
145150
public List<Typeface> getTypefaces() {
146151
if (mTypefaces == null) {
147152
synchronized (this) {

tehreer-android/src/main/java/com/mta/tehreer/sfnt/ShapingResult.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,21 @@ public int getGlyphCount() {
223223
return new UIntPtrBufferIntList(this, pointer, size);
224224
}
225225

226+
/**
227+
* Returns a list of caret edges having caret stop on every code unit.
228+
*
229+
* @return A list of caret edges having caret stop on every code unit.
230+
*/
226231
public @NonNull FloatList getCaretEdges() {
227232
return getCaretEdges(null);
228233
}
229234

235+
/**
236+
* Returns a list of caret edges.
237+
*
238+
* @param caretStops An array for caret stops of the code units represented by this object.
239+
* @return A list of caret edges.
240+
*/
230241
public @NonNull FloatList getCaretEdges(boolean[] caretStops) {
231242
int charCount = getCharCount();
232243
float[] caretEdges = new float[charCount + 1];

0 commit comments

Comments
 (0)