font_render_params_linux.h 699 B

1234567891011121314151617181920
  1. // Copyright 2022 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef UI_GFX_FONT_RENDER_PARAMS_LINUX_H_
  5. #define UI_GFX_FONT_RENDER_PARAMS_LINUX_H_
  6. #include "ui/gfx/font_render_params.h"
  7. namespace gfx {
  8. // Queries Fontconfig for rendering settings and updates |params_out| and
  9. // |family_out| (if non-nullptr). Returns false on failure.
  10. GFX_EXPORT bool QueryFontconfig(const FontRenderParamsQuery& query,
  11. FontRenderParams* params_out,
  12. std::string* family_out);
  13. } // namespace gfx
  14. #endif // UI_GFX_FONT_RENDER_PARAMS_LINUX_H_