Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsFontMetricsUtils.cpp File Reference
#include "nsFontMetricsUtils.h"

Go to the source code of this file.

Functions

PRUint32 NS_FontMetricsGetHints (void)
nsresult NS_FontMetricsFamilyExists (nsIDeviceContext *aDevice, const nsString &aName)

Function Documentation

Definition at line 81 of file nsFontMetricsUtils.cpp.

{
#ifdef MOZ_ENABLE_PANGO
    if (NS_IsPangoEnabled()) {
        return nsFontMetricsPango::FamilyExists(aDevice, aName);
    }
#endif
#ifdef MOZ_ENABLE_XFT
    // try to fall through to the core fonts if xft fails
    if (NS_IsXftEnabled()) {
        return nsFontMetricsXft::FamilyExists(aDevice, aName);
    }
#endif

#ifdef MOZ_ENABLE_COREXFONTS
    return nsFontMetricsGTK::FamilyExists(aDevice, aName);
#endif
}

Here is the call graph for this function:

Definition at line 62 of file nsFontMetricsUtils.cpp.

{
#ifdef MOZ_ENABLE_PANGO
    if (NS_IsPangoEnabled()) {
        return nsFontMetricsPango::GetHints();
    }
#endif
#ifdef MOZ_ENABLE_XFT
    if (NS_IsXftEnabled()) {
        return nsFontMetricsXft::GetHints();
    }
#endif

#ifdef MOZ_ENABLE_COREXFONTS
    return nsFontMetricsGTK::GetHints();
#endif
}

Here is the call graph for this function: