openbsd-ports/x11/ttmkfdir/patches/patch-ttf_cpp

13 lines
589 B
Plaintext

$OpenBSD: patch-ttf_cpp,v 1.1 2004/02/12 01:32:03 kevlo Exp $
--- ttf.cpp.orig 2004-02-11 17:10:31.000000000 +0000
+++ ttf.cpp 2004-02-11 17:10:41.000000000 +0000
@@ -226,7 +226,7 @@ Face::FontFamilyName (void) const
for (i = 0; i < n; i++) {
if ((fterror = FT_Get_Sfnt_Name (face, i, &NamePtr)) != FT_Err_Ok) {
std::cout << "Warning: Can't SFNT name : " << FileName << "(" << fterror << ")" << std::endl;
- return;
+ return (0);
};
platform = NamePtr.platform_id;
encoding = NamePtr.encoding_id;