shithub: freetype+ttf2subf

Download patch

ref: 17904a107a6cb6e5ba7999e3b25f38919d7e86e5
parent: d77cd8ce7ee8ae3adf44317cda200c2eb0ca6d0f
author: Ralph Giles <[email protected]>
date: Wed Aug 26 09:27:04 EDT 2009

Document that FT_Get_X11_Font_Format() is a general call.

This function was originally added to return the underlying font
format in a way which was compatible with the needs of the XFree86
font server.  However, a function of this sort is also necessary when
freetype is used by PDF interpreters which apply different rules
based on the font format.

The X11 namespace is confusing for such users.  This commit ameliorates
that confusion by documenting that this function is in fact entirely
internal to freetype and doesn't depend on X11 in any way.

git/fs: mount .git/fs: mount/attach disallowed
--- a/include/freetype/ftxf86.h
+++ b/include/freetype/ftxf86.h
@@ -49,6 +49,9 @@
   /*   however, there are special cases (like in PDF devices) where it is  */
   /*   important to differentiate, in spite of FreeType's uniform API.     */
   /*                                                                       */
+  /*   This function is in the X11/xf86 namespace for historical reasons   */
+  /*   and in no way depends on that windowing system.                     */
+  /*                                                                       */
   /*************************************************************************/