summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibPDF/Renderer.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-06-01 10:01:11 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-01 10:01:11 +0200
commit12a42edd13f6bd2def0ff045389ab289fbcb0b83 (patch)
tree9f3d082658ba039879a8ecfc81bb870f05ba611f /Userland/Libraries/LibPDF/Renderer.cpp
parenta8ae8b24deab52e851381c4385c316c57ce47d6a (diff)
downloadserenity-12a42edd13f6bd2def0ff045389ab289fbcb0b83.zip
Everywhere: codepoint => code point
Diffstat (limited to 'Userland/Libraries/LibPDF/Renderer.cpp')
-rw-r--r--Userland/Libraries/LibPDF/Renderer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Libraries/LibPDF/Renderer.cpp b/Userland/Libraries/LibPDF/Renderer.cpp
index 94296cf0aa..a66ce740f9 100644
--- a/Userland/Libraries/LibPDF/Renderer.cpp
+++ b/Userland/Libraries/LibPDF/Renderer.cpp
@@ -534,7 +534,7 @@ void Renderer::show_text(const String& string, int shift)
auto utf = Utf8View(string);
auto& font = text_state().font;
- for (auto codepoint : utf) {
+ for (auto code_point : utf) {
// FIXME: Don't calculate this matrix for every character
auto& text_rendering_matrix = calculate_text_rendering_matrix();
@@ -542,14 +542,14 @@ void Renderer::show_text(const String& string, int shift)
text_position.set_y(static_cast<float>(m_bitmap->height()) - text_position.y());
// FIXME: For some reason, the space character in LiberationSerif is drawn as an exclamation point
- if (codepoint != 0x20)
- m_painter.draw_glyph(text_position.to_type<int>(), codepoint, *text_state().font, state().paint_color);
+ if (code_point != 0x20)
+ m_painter.draw_glyph(text_position.to_type<int>(), code_point, *text_state().font, state().paint_color);
- auto glyph_width = static_cast<float>(font->glyph_width(codepoint));
+ auto glyph_width = static_cast<float>(font->glyph_width(code_point));
auto tx = (glyph_width - static_cast<float>(shift) / 1000.0f);
tx += text_state().character_spacing;
- if (codepoint == ' ')
+ if (code_point == ' ')
tx += text_state().word_spacing;
tx *= text_state().horizontal_scaling;