Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/txt/AttributedString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ namespace txt
if( node->value_size() != 0 ) {
mSubstrings.push_back( AttributedString::Substring( node->value(), mAttributesStack.top() ) );
}
else if( stricmp( node->name(), ATTR_LINE_BREAK ) == 0 ) {
else if( _stricmp( node->name(), ATTR_LINE_BREAK ) == 0 ) {
if( !mSubstrings.size() ) {
mSubstrings.push_back( AttributedString::Substring( "\n", mAttributesStack.top() ) );
}
Expand Down
4 changes: 2 additions & 2 deletions src/txt/TextLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ namespace txt


for( auto& index : shapedGlyphs[i].textIndices ) {
ci::app::console() << lineBreaks[index] << std::endl;
//ci::app::console() << lineBreaks[index] << std::endl;

if( lineBreaks[index] == ci::UNICODE_MUST_BREAK ) {
// Add the current run then move to next line
Expand Down Expand Up @@ -362,4 +362,4 @@ namespace txt
mLineHeight = 0.f;
mAscender = 0.f;
}
}
}