1/*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2006 Apple Inc. All rights reserved.
6 * Copyright (C) 2008 INdT - Instituto Nokia de Tecnologia
7 * Copyright (C) 2009-2010 ProFUSION embedded systems
8 * Copyright (C) 2009-2010 Samsung Electronics
9 *
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 * Library General Public License for more details.
19 *
20 * You should have received a copy of the GNU Library General Public License
21 * along with this library; see the file COPYING.LIB.  If not, write to
22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 * Boston, MA 02110-1301, USA.
24 *
25 */
26
27#include "config.h"
28#include "Font.h"
29
30#include "GraphicsContext.h"
31#include "NotImplemented.h"
32#include "SimpleFontData.h"
33
34#include <cairo.h>
35
36namespace WebCore {
37
38void Font::drawComplexText(GraphicsContext*, const TextRun&, const FloatPoint&, int from, int to) const
39{
40    notImplemented();
41}
42
43void Font::drawEmphasisMarksForComplexText(GraphicsContext* /* context */, const TextRun& /* run */, const AtomicString& /* mark */, const FloatPoint& /* point */, int /* from */, int /* to */) const
44{
45    notImplemented();
46}
47
48bool Font::canReturnFallbackFontsForComplexText()
49{
50    return false;
51}
52
53bool Font::canExpandAroundIdeographsInComplexText()
54{
55    return false;
56}
57
58float Font::floatWidthForComplexText(const TextRun&, HashSet<const SimpleFontData*>*, GlyphOverflow*) const
59{
60    notImplemented();
61    return 0.0f;
62}
63
64int Font::offsetForPositionForComplexText(const TextRun&, float, bool) const
65{
66    notImplemented();
67    return 0;
68}
69
70FloatRect Font::selectionRectForComplexText(const TextRun&, const FloatPoint&, int, int, int) const
71{
72    notImplemented();
73    return FloatRect();
74}
75
76}
77