freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Devel] FT_Get_BDF_Charset_ID() for PCF


From: Detlef Würkner
Subject: [Devel] FT_Get_BDF_Charset_ID() for PCF
Date: Wed, 10 Dec 2003 10:03:07 +0100

Hello!

The current PCF driver lacks support for FT_Get_BDF_Charset_ID(), this
patch fixes that, its just a copy from the BDF driver:

--- src/pcf/pcfdrivr.c.ori      Fri Oct 24 10:04:27 2003
+++ src/pcf/pcfdrivr.c  Wed Dec 10 08:41:11 2003
@@ -511,9 +511,21 @@
   }
 
 
+  static FT_Error
+  pcf_get_charset_id( PCF_Face      face,
+                      const char*  *acharset_encoding,
+                      const char*  *acharset_registry )
+  {
+    *acharset_encoding = face->charset_encoding;
+    *acharset_registry = face->charset_registry;
+
+    return 0;
+  }
+
+
   static FT_Service_BDFRec  pcf_service_bdf =
   {
-    (FT_BDF_GetCharsetIdFunc)NULL,  /* unimplemented ? */
+    (FT_BDF_GetCharsetIdFunc)pcf_get_charset_id,
     (FT_BDF_GetPropertyFunc) pcf_get_bdf_property
   };
 
It may return NULL pointers when the font does not have the
properties but thats also the case for the BDF driver so it
should be no problem.

Ciao, Detlef
-- 
_ // address@hidden
\X/  Detlef Wuerkner, Langgoens/Germany



reply via email to

[Prev in Thread] Current Thread [Next in Thread]