mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibGfx+LibWeb: Replace remaining OpenType implementation with Skia
This change should move us forward toward emoji support, as we are no longer limited by our own OpenType implementation, which was failing to parse the TrueType Collection format used to store emoji fonts (at least on macOS).
This commit is contained in:
committed by
Alexander Kalenik
parent
99f64139d0
commit
a9d5a99568
22
AK/LsanSuppressions.h
Normal file
22
AK/LsanSuppressions.h
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (c) 2024, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Platform.h>
|
||||
|
||||
#ifdef HAS_ADDRESS_SANITIZER
|
||||
extern "C" {
|
||||
char const* __lsan_default_suppressions();
|
||||
char const* __lsan_default_suppressions()
|
||||
{
|
||||
// Both Skia and Chromium suppress false positive FontConfig leaks
|
||||
// https://github.com/google/skia/blob/main/tools/LsanSuppressions.cpp#L20
|
||||
// https://chromium.googlesource.com/chromium/src/build/+/master/sanitizers/lsan_suppressions.cc#25
|
||||
return "leak:FcPatternObjectInsertElt";
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user