[ft-devel] [PATCH] ftmodule.h: add config menu for Keil IDE

2018-03-15 Thread opentkernel
From: DU HUANPENG 

Signed-off-by: DU HUANPENG 
---
 include/freetype/config/ftmodule.h | 76 ++
 1 file changed, 76 insertions(+)

diff --git a/include/freetype/config/ftmodule.h 
b/include/freetype/config/ftmodule.h
index 76d271a..3cb1579 100644
--- a/include/freetype/config/ftmodule.h
+++ b/include/freetype/config/ftmodule.h
@@ -10,23 +10,99 @@
  *
  */
 
+/**/
+// <<< Use Configuration Wizard in Context Menu >>>   
//
+/**/
+
+//   FT_Module_Class   info
+//   FT_Driver_ClassRecinfo
+//   FT_Driver_ClassRecinfo
+//   FT_Driver_ClassRecinfo
+//   FT_Driver_ClassRecinfo
+//   FT_Driver_ClassRecinfo
+//   FT_Driver_ClassRecinfo
+//   FT_Driver_ClassRecinfo
+//   FT_Driver_ClassRecinfo
+//  FT_Module_Class   info
+//  FT_Module_Class   info
+//  FT_Module_Class   info
+//  FT_Renderer_Class info
+//  FT_Module_Class   info
+//  FT_Renderer_Class info
+//  FT_Renderer_Class info
+//  FT_Renderer_Class info
+//  FT_Driver_ClassRecinfo
+
+#if 1
 FT_USE_MODULE( FT_Module_Class, autofit_module_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, tt_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, t1_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, cff_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, t1cid_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, pfr_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, t42_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, winfnt_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, pcf_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Module_Class, psaux_module_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Module_Class, psnames_module_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Module_Class, pshinter_module_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Renderer_Class, ft_raster1_renderer_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Module_Class, sfnt_module_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Renderer_Class, ft_smooth_renderer_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Renderer_Class, ft_smooth_lcd_renderer_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Renderer_Class, ft_smooth_lcdv_renderer_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, bdf_driver_class )
+#endif
 
 /* EOF */
-- 
2.7.4



___
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel


[ft-devel] [PATCH] ftmodule.h: add config menu for Keil IDE

2018-03-15 Thread duhuanpeng
From: DU HUANPENG 

Signed-off-by: DU HUANPENG 
---
 include/freetype/config/ftmodule.h | 76 ++
 1 file changed, 76 insertions(+)

diff --git a/include/freetype/config/ftmodule.h 
b/include/freetype/config/ftmodule.h
index 76d271a..3cb1579 100644
--- a/include/freetype/config/ftmodule.h
+++ b/include/freetype/config/ftmodule.h
@@ -10,23 +10,99 @@
  *
  */
 
+/**/
+// <<< Use Configuration Wizard in Context Menu >>>   
//
+/**/
+
+//   FT_Module_Class   info
+//   FT_Driver_ClassRecinfo
+//   FT_Driver_ClassRecinfo
+//   FT_Driver_ClassRecinfo
+//   FT_Driver_ClassRecinfo
+//   FT_Driver_ClassRecinfo
+//   FT_Driver_ClassRecinfo
+//   FT_Driver_ClassRecinfo
+//   FT_Driver_ClassRecinfo
+//  FT_Module_Class   info
+//  FT_Module_Class   info
+//  FT_Module_Class   info
+//  FT_Renderer_Class info
+//  FT_Module_Class   info
+//  FT_Renderer_Class info
+//  FT_Renderer_Class info
+//  FT_Renderer_Class info
+//  FT_Driver_ClassRecinfo
+
+#if 1
 FT_USE_MODULE( FT_Module_Class, autofit_module_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, tt_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, t1_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, cff_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, t1cid_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, pfr_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, t42_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, winfnt_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, pcf_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Module_Class, psaux_module_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Module_Class, psnames_module_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Module_Class, pshinter_module_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Renderer_Class, ft_raster1_renderer_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Module_Class, sfnt_module_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Renderer_Class, ft_smooth_renderer_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Renderer_Class, ft_smooth_lcd_renderer_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Renderer_Class, ft_smooth_lcdv_renderer_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, bdf_driver_class )
+#endif
 
 /* EOF */
-- 
2.7.4





___
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] Contribution to freetype

2018-03-15 Thread Parth Wazurkar
Thank you so much Ewald.
I'll check that out.

Regards
Parth

On Fri, Mar 16, 2018 at 9:13 AM, Ewald Hew  wrote:

> Hi Parth,
>
> > I am unable to figure out the working of `FT_Face_InitFunc` in the
> `ftdrv.h`
> > file.
> > particularly, how does the call to `init_face` function invokes the
> > particular font format's driver.
> > Please help.
>
> I suggest you read the article here
> , which
> goes into some detail about how interfaces are being implemented in
> FreeType.
>
> Basically, `FT_Face_InitFunc' is a function pointer type (with its
> signature), through which the driver-specific implementation of
> `init_face' can be set, per module. Look up the `FT_DEFINE_DRIVER'
> macro and where it's being used.
>
> Ewald
>
___
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel


[ft-devel] [PATCH] ftmodule.h: add config menu for Keil IDE

2018-03-15 Thread duhuanpeng
From: DU HUANPENG 

Signed-off-by: DU HUANPENG 
---
 include/freetype/config/ftmodule.h | 76 ++
 1 file changed, 76 insertions(+)

diff --git a/include/freetype/config/ftmodule.h 
b/include/freetype/config/ftmodule.h
index 76d271a..3cb1579 100644
--- a/include/freetype/config/ftmodule.h
+++ b/include/freetype/config/ftmodule.h
@@ -10,23 +10,99 @@
  *
  */
 
+/**/
+// <<< Use Configuration Wizard in Context Menu >>>   
//
+/**/
+
+//   FT_Module_Class   info
+//   FT_Driver_ClassRecinfo
+//   FT_Driver_ClassRecinfo
+//   FT_Driver_ClassRecinfo
+//   FT_Driver_ClassRecinfo
+//   FT_Driver_ClassRecinfo
+//   FT_Driver_ClassRecinfo
+//   FT_Driver_ClassRecinfo
+//   FT_Driver_ClassRecinfo
+//  FT_Module_Class   info
+//  FT_Module_Class   info
+//  FT_Module_Class   info
+//  FT_Renderer_Class info
+//  FT_Module_Class   info
+//  FT_Renderer_Class info
+//  FT_Renderer_Class info
+//  FT_Renderer_Class info
+//  FT_Driver_ClassRecinfo
+
+#if 1
 FT_USE_MODULE( FT_Module_Class, autofit_module_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, tt_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, t1_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, cff_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, t1cid_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, pfr_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, t42_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, winfnt_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, pcf_driver_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Module_Class, psaux_module_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Module_Class, psnames_module_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Module_Class, pshinter_module_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Renderer_Class, ft_raster1_renderer_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Module_Class, sfnt_module_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Renderer_Class, ft_smooth_renderer_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Renderer_Class, ft_smooth_lcd_renderer_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Renderer_Class, ft_smooth_lcdv_renderer_class )
+#endif
+
+#if 1
 FT_USE_MODULE( FT_Driver_ClassRec, bdf_driver_class )
+#endif
 
 /* EOF */
-- 
2.7.4





___
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] Contribution to freetype

2018-03-15 Thread Ewald Hew
Hi Parth,

> I am unable to figure out the working of `FT_Face_InitFunc` in the `ftdrv.h`
> file.
> particularly, how does the call to `init_face` function invokes the
> particular font format's driver.
> Please help.

I suggest you read the article here
, which
goes into some detail about how interfaces are being implemented in
FreeType.

Basically, `FT_Face_InitFunc' is a function pointer type (with its
signature), through which the driver-specific implementation of
`init_face' can be set, per module. Look up the `FT_DEFINE_DRIVER'
macro and where it's being used.

Ewald

___
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] Contribution to freetype

2018-03-15 Thread Parth Wazurkar
Hi all,
I am unable to figure out the working of `FT_Face_InitFunc` in the
`ftdrv.h` file.
particularly, how does the call to `init_face` function invokes the
particular font format's driver.
Please help.

Regards
Parth

On Wed, Mar 7, 2018 at 9:23 PM, Parth Wazurkar 
wrote:

> Ok
> Seems like I messed up some things.
> Thank you for the reply, now I have understood where I was going wrong.
> I will work on that and get back soon.
>
> Thank You
> Regards
> Parth
>
>
> On Wed, Mar 7, 2018 at 9:01 PM, Werner LEMBERG  wrote:
>
>>
>> > I am thinking of some possible ways in providing multiple font
>> > support,
>>
>> What exactly do you mean with `multiple font support'?
>>
>> > first one can be to use the available converters for conversion of
>> > font formats, the second one can be to use the Freetype approach by
>> > modifying `FT_DRIVER_H`, `FT_OPEN_DRIVER` to support the tex font
>> > drivers as well, another can be the VFlib approach i.e to define a
>> > new font database file on the lines of vflibcap and then using the
>> > Kpathsea library for searching TEX fonts.
>> >
>> > I ruled out the first one as we must convert many font files in
>> > advance and also we don't have converters available for all types of
>> > fonts.
>>
>> OK (but I don't know exactly to what it refers).
>>
>> > I am currently more inclined towards the VFlib approach.
>>
>> You mean something like `vflibcap'?  I think this is the wrong
>> approach.  Please bear in mind that FreeType is a font rendering
>> engine, working at the lowest level – actually, there is no other
>> font-related library on a lower level (in a font stack that uses
>> FreeType, that is).
>>
>> `vflibcap', for example, provides a much higher-level access to fonts;
>> it handles kpathsea issues, encoding conversion files, etc., etc.  All
>> this stuff doesn't belong to FreeType.
>>
>> FreeType takes a font file, opens it, selects a glyph, and rasterizes
>> it.  That's it!  And such low-level functions the GSoC project should
>> provide.  The exception is VF files, which probably needs a new
>> interface: For example, a new function could return a list of the
>> necessary `raw' fonts (in TeX speak).  An alternative could be a
>> callback function that receives a font name and returns a handle to
>> FreeType.  This is what a GSoC student should research.
>>
>>
>> Werner
>>
>
>
___
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] CMake patches from Microsoft's vcpkg project

2018-03-15 Thread Nikolaus Waxweiler
So.. regarding a minimum version. I'm building FreeType for bundling 
with freetype-py and I'm using 
https://github.com/matthew-brett/multibuild to build it on Linux and 
macOS. For Linux, a CentOS 5.11 image is used to build stuff 
(https://github.com/pypa/manylinux), which comes with CMake 2.8.11.2.


Damn! Well, in the name of testing if the minimum version actually 
works, I suggest bumping the requirement to 2.8.11.2 because that will 
actually get testing via freetype-py. Not a great win for me though.


Now, if the features Azamat suggests need something newer, I'd take that 
as the minimum requirement and just use `pip install cmake ninja` to get 
something shiny. Still have to look at his suggestions...


___
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel


[ft-devel] Freetype fails to open BDF files

2018-03-15 Thread Akira Urushibata
I have observed that freetype-2.9 cannot open numerous BDF files.
After encountering the problem I wrote the following program to
investigate.

#include 
#include 
#include 

#include 
#include FT_FREETYPE_H

int error;

int
main( int argc,
  char**  argv )
{
  FT_Librarylibrary;
  FT_Face   face;
  char* filename;

  if ( argc != 2)
  {
fprintf ( stderr, "usage: %s font sample-text\n", argv[0] );
exit( 1 );
  }

  filename  = argv[1];   /* first argument */


  error = FT_Init_FreeType(  );  /* initialize library */
  if (error!=0) {
fprintf (stderr,"%d\n", error);
return error;
  }

  error = FT_New_Face( library, filename, 0,  );/* create face object */
  if (error!=0) {
fprintf (stderr,"%d\n", error);
return error;
  }

  fprintf (stderr,"%d\n", 0);
  return 0;
}

/* EOF */

And these are the results.  BDF files were taken directly from debian source
packages.  First number in line is the error code, or 0 in case of success.

3 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/helvR18.bdf
3 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/courR08.bdf
3 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/courR18.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/symb24.bdf
3 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/helvR10.bdf
3 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/lutRS12.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/symb12.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/symb18.bdf
3 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/courR12.bdf
3 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/helvR24.bdf
3 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/courR10.bdf
3 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/helvR08.bdf
3 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/lutRS18.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/lutRS08.bdf
3 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/helvR14.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/symb10.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/symb14.bdf
3 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/lutRS14.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/symb08.bdf
3 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/courR14.bdf
3 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/helvR12.bdf
3 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/courR24.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/lutRS19.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/lutRS24.bdf
3 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/origfonts/lutRS10.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/fonts/2helvR24.bdf
0 xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/fonts/5etl14.bdf
0 xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/fonts/heriR24.bdf
0 xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/fonts/heriR18.bdf
0 xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/fonts/heriR12.bdf
0 xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/fonts/5etl16.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/fonts/2helvR18.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/fonts/xsymb1_12.bdf
0 xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/fonts/5etl24.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/fonts/3helvR08.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/fonts/3helvR18.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/fonts/2helvR14.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/fonts/xsymb1_14.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/fonts/2helvR08.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/fonts/3helvR24.bdf
0 xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/fonts/nilxs.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/fonts/2helvR10.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/fonts/3helvR14.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/fonts/xsymb0_12.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/fonts/3helvR12.bdf
0 
xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/fonts/xsymb0_14.bdf
0 xemacs21-packages-2009.02.17.dfsg.2/xemacs-packages/x-symbol/fonts/heriR14.bdf
0