#include "third_party/blink/public/platform/web_font.h"
#include "cc/paint/paint_flags.h"
#include "third_party/blink/public/platform/web_font_description.h"
#include "third_party/blink/public/platform/web_text_run.h"
#include "third_party/blink/renderer/platform/fonts/font.h"
#include "third_party/blink/renderer/platform/fonts/font_cache.h"
#include "third_party/blink/renderer/platform/fonts/font_description.h"
#include "third_party/blink/renderer/platform/fonts/text_run_paint_info.h"
#include "third_party/blink/renderer/platform/text/text_run.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
namespace blink {
WebFont* WebFont::Create(const WebFontDescription& description) { … }
class WebFont::Impl final : public GarbageCollected<WebFont::Impl> { … };
WebFont::WebFont(const WebFontDescription& description)
: … { … }
WebFont::~WebFont() = default;
WebFontDescription WebFont::GetFontDescription() const { … }
static inline const SimpleFontData* GetFontData(const Font& font) { … }
int WebFont::Ascent() const { … }
int WebFont::Descent() const { … }
int WebFont::Height() const { … }
int WebFont::LineSpacing() const { … }
float WebFont::XHeight() const { … }
void WebFont::DrawText(cc::PaintCanvas* canvas,
const WebTextRun& run,
const gfx::PointF& left_baseline,
SkColor color) const { … }
int WebFont::CalculateWidth(const WebTextRun& run) const { … }
int WebFont::OffsetForPosition(const WebTextRun& run, float position) const { … }
gfx::RectF WebFont::SelectionRectForText(const WebTextRun& run,
const gfx::PointF& left_baseline,
int height,
int from,
int to) const { … }
}