Skip to content

Commit 3ca988a

Browse files
bwikbsbbrto21
andcommitted
Fix coding style
Signed-off-by: MuHong Byun <mh.byun@samsung.com> Co-authored-by: Boram Bae <boram21.bae@samsung.com>
1 parent 789e8e3 commit 3ca988a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

third_party/txt/src/minikin/FontCollection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,8 @@ void FontCollection::itemize(const uint16_t* string,
529529
}
530530
start -= prevChLength;
531531
}
532-
result->push_back(
533-
{family->getClosestMatchWithChar(style,ch), static_cast<int>(start), 0});
532+
result->push_back({family->getClosestMatchWithChar(style, ch),
533+
static_cast<int>(start), 0});
534534
run = &result->back();
535535
lastFamily = family.get();
536536
}

third_party/txt/src/minikin/FontFamily.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ FakedFont FontFamily::getClosestMatch(FontStyle style) const {
164164
return FakedFont{nullptr, FontFakery()};
165165
}
166166

167-
FakedFont FontFamily::getClosestMatchWithChar(FontStyle style,uint32_t codepoint) const {
167+
FakedFont FontFamily::getClosestMatchWithChar(FontStyle style,
168+
uint32_t codepoint) const {
168169
const Font* bestFont = nullptr;
169170
int bestMatch = 0;
170171
for (size_t i = 0; i < mFonts.size(); i++) {
@@ -174,13 +175,12 @@ FakedFont FontFamily::getClosestMatchWithChar(FontStyle style,uint32_t codepoint
174175
{
175176
hb_font_t* hb_font = getHbFontLocked(font.typeface.get());
176177
uint32_t unusedGlyph;
177-
result =
178-
hb_font_get_glyph(hb_font, codepoint, 0, &unusedGlyph);
178+
result = hb_font_get_glyph(hb_font, codepoint, 0, &unusedGlyph);
179179
hb_font_destroy(hb_font);
180180
}
181181

182-
if(result){
183-
if (i == 0 || match < bestMatch || bestMatch==0) {
182+
if (result) {
183+
if (i == 0 || match < bestMatch || bestMatch == 0) {
184184
bestFont = &font;
185185
bestMatch = match;
186186
}

0 commit comments

Comments
 (0)