chromium/ui/gfx/font.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/gfx/font.h"

#include <algorithm>

#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "ui/gfx/platform_font.h"

#ifndef NDEBUG
#include <ostream>
#endif

namespace gfx {

////////////////////////////////////////////////////////////////////////////////
// Font, public:

Font::Font() :{}

Font::Font(const Font& other) :{}

Font& Font::operator=(const Font& other) {}

#if BUILDFLAG(IS_APPLE)
Font::Font(CTFontRef ct_font)
    : platform_font_(PlatformFont::CreateFromCTFont(ct_font)) {}
#endif

Font::Font(PlatformFont* platform_font) :{}

Font::Font(const std::string& font_name, int font_size)
    :{}

Font::~Font() {}

Font Font::Derive(int size_delta, int style, Font::Weight weight) const {}

int Font::GetHeight() const {}

int Font::GetBaseline() const {}

int Font::GetCapHeight() const {}

int Font::GetExpectedTextWidth(int length) const {}

int Font::GetStyle() const {}

const std::string& Font::GetFontName() const {}

std::string Font::GetActualFontName() const {}

int Font::GetFontSize() const {}

Font::Weight Font::GetWeight() const {}

const FontRenderParams& Font::GetFontRenderParams() const {}

#if BUILDFLAG(IS_APPLE)
CTFontRef Font::GetCTFont() const {
  return platform_font_->GetCTFont();
}
#endif

#ifndef NDEBUG
std::ostream& operator<<(std::ostream& stream, const Font::Weight weight) {}
#endif

Font::Weight FontWeightFromInt(int weight) {}

}  // namespace gfx