Kaydet (Commit) 776abbb8 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Adapt gcach_layout.cxx to SAL_INFO

* ServerFont::GetFontFileName definition seems to inadvertently got lost with
  8e64e571 "Merge FreetypeServerFont and
  ServerFont now its split out into unx"

* Likewise, ServerFont::GetFontFaceNumber is unused, so remove declaration (that
  also has no corresponding definition)

Change-Id: Ia8919d4248243c434c5cdbda548f5303a468f2d3
üst 8f5629fd
...@@ -913,7 +913,10 @@ boost::shared_ptr<ImplFontOptions> ServerFont::GetFontOptions() const ...@@ -913,7 +913,10 @@ boost::shared_ptr<ImplFontOptions> ServerFont::GetFontOptions() const
return mpFontOptions; return mpFontOptions;
} }
// ----------------------------------------------------------------------- const ::rtl::OString* ServerFont::GetFontFileName() const
{
return mpFontInfo->GetFontFileName();
}
bool ServerFont::TestFont() const bool ServerFont::TestFont() const
{ {
......
...@@ -35,10 +35,6 @@ ...@@ -35,10 +35,6 @@
#include <vcl/svapp.hxx> #include <vcl/svapp.hxx>
#include <sal/alloca.h> #include <sal/alloca.h>
#if OSL_DEBUG_LEVEL > 1
#include <cstdio>
#endif
#include <rtl/instance.hxx> #include <rtl/instance.hxx>
namespace { struct SimpleLayoutEngine : public rtl::Static< ServerFontLayoutEngine, SimpleLayoutEngine > {}; } namespace { struct SimpleLayoutEngine : public rtl::Static< ServerFontLayoutEngine, SimpleLayoutEngine > {}; }
...@@ -231,12 +227,11 @@ const void* IcuFontFromServerFont::getFontTable( LETag nICUTableTag ) const ...@@ -231,12 +227,11 @@ const void* IcuFontFromServerFont::getFontTable( LETag nICUTableTag ) const
sal_uLong nLength; sal_uLong nLength;
const unsigned char* pBuffer = mrServerFont.GetTable( pTagName, &nLength ); const unsigned char* pBuffer = mrServerFont.GetTable( pTagName, &nLength );
#if OSL_DEBUG_LEVEL > 1 SAL_INFO("vcl", "IcuGetTable(\"" << pTagName << "\") => " << pBuffer);
fprintf(stderr,"IcuGetTable(\"%s\") => %p\n", pTagName, pBuffer); SAL_INFO(
int mnHeight = mrServerFont.GetFontSelData().mnHeight; "vcl",
const char* pName = mrServerFont.GetFontFileName()->getStr(); "font( h=" << mrServerFont.GetFontSelData().mnHeight << ", \""
fprintf(stderr,"font( h=%d, \"%s\" )\n", mnHeight, pName ); << mrServerFont.GetFontFileName()->getStr() << "\" )");
#endif
return (const void*)pBuffer; return (const void*)pBuffer;
} }
...@@ -336,17 +331,10 @@ void IcuFontFromServerFont::getGlyphAdvance( LEGlyphID nGlyphIndex, ...@@ -336,17 +331,10 @@ void IcuFontFromServerFont::getGlyphAdvance( LEGlyphID nGlyphIndex,
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
le_bool IcuFontFromServerFont::getGlyphPoint( LEGlyphID, le_bool IcuFontFromServerFont::getGlyphPoint( LEGlyphID,
le_int32 le_int32 pointNumber, LEPoint& ) const
#if OSL_DEBUG_LEVEL > 1
pointNumber
#endif
,
LEPoint& ) const
{ {
//TODO: replace dummy implementation //TODO: replace dummy implementation
#if OSL_DEBUG_LEVEL > 1 SAL_INFO("vcl", "getGlyphPoint(" << pointNumber << ")");
fprintf(stderr,"getGlyphPoint(%d)\n", pointNumber );
#endif
return false; return false;
} }
......
...@@ -192,7 +192,6 @@ public: ...@@ -192,7 +192,6 @@ public:
virtual ~ServerFont(); virtual ~ServerFont();
const ::rtl::OString* GetFontFileName() const; const ::rtl::OString* GetFontFileName() const;
int GetFontFaceNumber() const;
bool TestFont() const; bool TestFont() const;
FT_Face GetFtFace() const; FT_Face GetFtFace() const;
int GetLoadFlags() const { return (mnLoadFlags & ~FT_LOAD_IGNORE_TRANSFORM); } int GetLoadFlags() const { return (mnLoadFlags & ~FT_LOAD_IGNORE_TRANSFORM); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment