Tehreer-Android v2.1 Release Notes
Release Date: 2018-04-01 // about 6 years ago-
โ Additions
TypeFamily
:- ๐
Style Matching:
getTypefaceByStyle(TypeWidth, TypeWeight, TypeSlope)
TypefaceManager
:- Typeface Grouping:
getTypeFamily(String familyName)
TextAlignment
:- Natural Alignment:
INTRINSIC
,EXTRINSIC
GlyphRun
:- Character Group:
int getActualClusterStart(int charIndex)
,int getActualClusterEnd(int charIndex)
- Glyph Group:
int getLeadingGlyphIndex(int charIndex)
,int getTrailingGlyphIndex(int charIndex)
- โ
Hit Testing:
float computeCharDistance(int charIndex)
,int computeNearestCharIndex(float distance)
ComposedLine
:- โ
Hit Testing:
float computeCharDistance(int charIndex)
,int computeNearestCharIndex(float distance)
- Highlighting:
float[] computeVisualEdges(int charStart, int charEnd)
CompsedFrame
:- Boundary Properties:
originX
,originY
,width
,height
- โ
Hit Testing:
int getLineIndexForChar(int charIndex)
,int getLineIndexForPosition(float x, float y)
- Highlighting:
Path generateSelectionPath(int charStart, int charEnd)
TLabel
:- Line Properties:
extraLineSpacing
,lineHeightMultiplier
- Text Properties:
composedFrame
,spanned
,typesetter
- โ
Hit Testing:
int hitTestPosition(float x, float y)
โ Added
FrameResolver
class for easier text layout and measurement.โ Added support for following
CharacterStyle
spans without invokingupdateDrawState(TextPaint)
orupdateMeasureState(TextPaint)
:- ForegroundColorSpan
- AbsoluteSizeSpan
- RelativeSizeSpan
- ReplacementSpan
- ScaleXSpan
- ๐ StyleSpan
- SubscriptSpan
- SuperscriptSpan
- TextAppearanceSpan
- TypefaceSpan
โ Added support for following
ParagraphStyle
spans:- AlignmentSpan
- BulletSpan
- LeadingMarginSpan
- LeadingMarginSpan2
- LineBackgroundSpan
- LineHeightSpan
- QuoteSpan
โก๏ธ Updates
- Divided functionality of
Typesetter
into various logical classes - Made
TypefaceSpan
andTypeSizeSpan
conform toMetricAffectingSpan
for easier span handling - โก๏ธ Updated FreeType to version 2.9
- โก๏ธ Updated SheenFigure to version 1.3
๐ Fixes
- ๐ Fixed
NullPointerException
caused byNameTable
on older android versions - ๐ Fixed
gravity
attribute ofTLabel
with flag format - Prohibited offsets and advances scaling in
Renderer
- Made accidentally publicized method
createCompactLine
private inTypesetter
- ๐
Style Matching: