1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:18:12 +00:00

LibGfx: Remove debug spam from FontDatabase lookups

This commit is contained in:
Andreas Kling 2021-02-16 13:11:36 +01:00
parent 575c7ed414
commit 57a345a590

View file

@ -31,7 +31,6 @@
#include <LibGfx/FontDatabase.h>
#include <LibGfx/Typeface.h>
#include <LibTTF/Font.h>
#include <dirent.h>
#include <stdio.h>
#include <stdlib.h>
@ -159,7 +158,6 @@ RefPtr<Gfx::Font> FontDatabase::get_by_name(const StringView& name)
RefPtr<Gfx::Font> FontDatabase::get(const String& family, unsigned size, unsigned weight)
{
dbgln("FontDatabase: Request font {} {} {}", family, size, weight);
for (auto typeface : m_private->typefaces) {
if (typeface->family() == family && typeface->weight() == weight)
return typeface->get_font(size);
@ -169,7 +167,6 @@ RefPtr<Gfx::Font> FontDatabase::get(const String& family, unsigned size, unsigne
RefPtr<Gfx::Font> FontDatabase::get(const String& family, const String& variant, unsigned size)
{
dbgln("FontDatabase: Request font {} {} {}", family, variant, size);
for (auto typeface : m_private->typefaces) {
if (typeface->family() == family && typeface->variant() == variant)
return typeface->get_font(size);