/*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
{
return false;
}
- if( fabsf( glyphData.advance - glyph.advance ) > Math::MACHINE_EPSILON_1000 )
+ if( fabsf( glyphData.advance - floor(glyph.advance) ) > Math::MACHINE_EPSILON_1000 )
{
return false;
}
layoutSize,
textModel,
metrics,
- false );
+ false,
+ LineWrap::WORD );
LogicalModelPtr logicalModel = textModel->mLogicalModel;
VisualModelPtr visualModel = textModel->mVisualModel;
std::cout << " height : " << glyphInfo.height << std::endl;
std::cout << " xBearing : " << glyphInfo.xBearing << std::endl;
std::cout << " yBearing : " << glyphInfo.yBearing << std::endl;
- std::cout << " advance : " << glyphInfo.advance << std::endl;
+ std::cout << " advance : " << floor(glyphInfo.advance) << std::endl;
std::cout << " scaleFactor : " << glyphInfo.scaleFactor << std::endl;
std::cout << " isItalicRequired : " << glyphInfo.isItalicRequired << std::endl;
std::cout << " isBoldRequired : " << glyphInfo.isBoldRequired << std::endl;