From 1fdce11a467b975a9cecaece3412f81e38453552 Mon Sep 17 00:00:00 2001 From: "ftang%netscape.com" Date: Tue, 6 Feb 2001 13:44:11 +0000 Subject: [PATCH] add HaveFontFor method for nsIFontEnumerator sr=erik --- gfx/src/mac/nsDeviceContextMac.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/gfx/src/mac/nsDeviceContextMac.cpp b/gfx/src/mac/nsDeviceContextMac.cpp index 52d52a57e1cd..0c9060c72afa 100644 --- a/gfx/src/mac/nsDeviceContextMac.cpp +++ b/gfx/src/mac/nsDeviceContextMac.cpp @@ -1220,4 +1220,21 @@ nsFontEnumeratorMac::EnumerateFonts(const char* aLangGroup, return NS_OK; } +NS_IMETHODIMP +nsFontEnumeratorMac::HaveFontFor(const char* aLangGroup,PRBool* aResult) +{ + if ((! aLangGroup) ) + return NS_ERROR_NULL_POINTER; + + if (aResult) { + *aResult = PR_FALSE; + } + else { + return NS_ERROR_NULL_POINTER; + } + + *aResult = PR_TRUE; // for now, just return true + // fix me later - ftang + return NS_OK; +}