blob: 6d63aeb11b452f887d272eb1dbafc2b7f84f6cd5 [file] [log] [blame]
// Copyright 2020 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "core/fxge/cfx_textrenderoptions.h"
#include "third_party/base/no_destructor.h"
// static
const CFX_TextRenderOptions& CFX_TextRenderOptions::LcdOptions() {
static pdfium::base::NoDestructor<CFX_TextRenderOptions> instance(kLcd);
return *instance;
}
CFX_TextRenderOptions::CFX_TextRenderOptions() = default;
CFX_TextRenderOptions::CFX_TextRenderOptions(AliasingType type)
: aliasing_type(type) {}
CFX_TextRenderOptions::CFX_TextRenderOptions(
const CFX_TextRenderOptions& other) = default;