Skip to content

Commit 0d8057d

Browse files
committed
stuff
1 parent 8a84e01 commit 0d8057d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/ruis/font/font.hpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,9 @@ class font
205205
renderer, //
206206
matrix,
207207
color,
208-
utki::utf8_iterator(str)
208+
utki::utf8_iterator(str),
209+
tab_size,
210+
offset
209211
);
210212
}
211213

@@ -221,17 +223,19 @@ class font
221223
* @return Redner result.
222224
*/
223225
render_result render(
226+
render::renderer& renderer, //
224227
const ruis::matrix4& matrix, //
225228
const ruis::color& color,
226-
const std::string& str,
229+
std::string_view str,
227230
unsigned tab_size = 4,
228231
size_t offset = std::numeric_limits<size_t>::max()
229232
) const
230233
{
231234
return this->render(
232-
matrix, //
235+
renderer, //
236+
matrix,
233237
color,
234-
str.c_str(),
238+
utki::utf8_iterator(str),
235239
tab_size,
236240
offset
237241
);

0 commit comments

Comments
 (0)