Changeset 57517 in webkit


Ignore:
Timestamp:
Apr 13, 2010 8:31:19 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-13 Stephan Aßmus <superstippi@gmx.de>

Reviewed by David Levin.

[Haiku] Use the system's default font family as last fall back font.
https://bugs.webkit.org/show_bug.cgi?id=37501

No new tests needed.

  • platform/graphics/haiku/FontCacheHaiku.cpp: (WebCore::FontCache::getLastResortFallbackFont):
    • Use the system's default font family (from be_plain_font global).
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r57516 r57517  
     12010-04-13  Stephan Aßmus  <superstippi@gmx.de>
     2
     3        Reviewed by David Levin.
     4
     5        [Haiku] Use the system's default font family as last fall back font.
     6        https://bugs.webkit.org/show_bug.cgi?id=37501
     7
     8        No new tests needed.
     9
     10        * platform/graphics/haiku/FontCacheHaiku.cpp:
     11        (WebCore::FontCache::getLastResortFallbackFont):
     12            - Use the system's default font family (from be_plain_font global).
     13
    1142010-04-13  Eskil Blomfeldt <eblomfel@trolltech.com>, Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
    215
  • trunk/WebCore/platform/graphics/haiku/FontCacheHaiku.cpp

    r54601 r57517  
    22 * Copyright (C) 2006 Dirk Mueller <mueller@kde.org>
    33 * Copyright (C) 2007 Ryan Leavengood <leavengood@gmail.com>
     4 * Copyright (C) 2010 Stephan Aßmus <superstippi@gmx.de>
    45 *
    56 * All rights reserved.
     
    3839#include "NotImplemented.h"
    3940#include <String.h>
    40 
     41#include <interface/Font.h>
    4142
    4243namespace WebCore {
     
    6061SimpleFontData* FontCache::getLastResortFallbackFont(const FontDescription& fontDescription)
    6162{
    62     // FIXME: Would be even better to somehow get the user's default font here.
    63     // For now we'll pick the default that the user would get without changing any prefs.
    64     static AtomicString defaultString("DejaVu Serif");
    65     return getCachedFontData(fontDescription, defaultString);
     63    font_family family;
     64    font_style style;
     65    be_plain_font->GetFamilyAndStyle(&family, &style);
     66    AtomicString plainFontFamily(family);
     67    return getCachedFontData(fontDescription, plainFontFamily);
    6668}
    6769
Note: See TracChangeset for help on using the changeset viewer.