blob: 95021483c0bc281cf360a7686154b2be3805e3b7 [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GFX_FONT_RENDER_PARAMS_LINUX_H_
#define UI_GFX_FONT_RENDER_PARAMS_LINUX_H_
#include "ui/gfx/font_render_params.h"
namespace gfx {
// Queries Fontconfig for rendering settings and updates |params_out| and
// |family_out| (if non-nullptr). Returns false on failure.
COMPONENT_EXPORT(GFX)
bool QueryFontconfig(const FontRenderParamsQuery& query,
FontRenderParams* params_out,
std::string* family_out);
// Force disables subpixel font rendering.
COMPONENT_EXPORT(GFX)
void SetForceDisableSubpixelFontRendering(bool disable);
COMPONENT_EXPORT(GFX)
bool GetFontRenderParamsSubpixelRenderingEnabledForTesting();
} // namespace gfx
#endif // UI_GFX_FONT_RENDER_PARAMS_LINUX_H_