[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Issue in FT_GlyphSlot_Embolden & FT_Outline_Embolden
From: |
Sivaprasad CG |
Subject: |
Re: [ft] Issue in FT_GlyphSlot_Embolden & FT_Outline_Embolden |
Date: |
Tue, 5 Aug 2008 00:48:53 -0700 (PDT) |
Following lines I have found in modules.cfg
# Support for synthetic embolding and slanting of fonts.
#
# See include/freetype/ftsynth.h for the API.
BASE_EXTENSIONS += ftsynth.c
When I grep > grep ftoutln `find -name '*.mk'`
I got
./src/base/rules.mk: $(BASE_DIR)/ftoutln.c
And I have not touched any configuration files & makefiles.
The default src code (freetype2.3.7) is giving the error message.
I am pasting below the test code which i am using.
Is there any thing wrong in my testing.
#include<stdio.h>
#include<ft2build.h>
#include FT_FREETYPE_H
#include FT_OUTLINE_H
#include FT_SYNTHESIS_H
int main()
{
FT_Library lib = NULL;
FT_Face face = NULL;
const char *filepath = "/usr/local/fonts/times.ttf";
if (FT_Init_FreeType (&lib) != 0)
{
printf("Freetype Lib Initialize : FAILED");
return 0;
}
if (FT_New_Face(lib,filepath,0,&face) != 0)
{
printf("Creating New Face : FAILED");
return 0;
}
FT_UInt glyph = 0;
FT_GlyphSlot slot = face->glyph;
if (FT_Load_Glyph (face, glyph, FT_LOAD_DEFAULT) != 0)
{
printf("FT_Load_Glyph : FAILED");
return 0;
}
FT_GlyphSlot_Embolden(slot);
return 0;
}
/******************End of Test.c**********************/
--
View this message in context:
http://www.nabble.com/Issue-in-FT_GlyphSlot_Embolden---FT_Outline_Embolden-tp18824908p18826172.html
Sent from the Freetype - User mailing list archive at Nabble.com.