Home
last modified time | relevance | path

Searched refs:hyphenPenalty (Results 1 – 1 of 1) sorted by relevance

/frameworks/minikin/libs/minikin/
DOptimalLineBreaker.cpp157 float hyphenPenalty = 0.5 * paint->size * paint->scaleX * lineWidth.getAt(0); in computePenalties() local
159 hyphenPenalty *= 4.0; // TODO: Replace with a better value after some testing in computePenalties()
165 hyphenPenalty *= 0.25; in computePenalties()
168 linePenalty = hyphenPenalty * LINE_PENALTY_MULTIPLIER; in computePenalties()
171 return std::make_pair(hyphenPenalty, linePenalty); in computePenalties()
244 float hyphenPenalty, bool isRtl, float letterSpacing, OptimizeContext* out) { in appendWithMerging() argument
255 proc.sumOfCharWidthsAtPrevWordBreak + hyIter->first, hyphenPenalty, in appendWithMerging()
291 float hyphenPenalty = 0.0f; in populateCandidates() local
294 hyphenPenalty = penalties.first; in populateCandidates()
328 proc, hyphenPenalty, isRtl, letterSpacing, &result); in populateCandidates()
[all …]