Font-FreeType
view release on metacpan or search on metacpan
FreeType.xs view on Meta::CPAN
/* utf8_to_uvchr is deprecated in 5.16, but
* utf8_to_uvchr_buf is not available before 5.16
* If I need to get fancier, I should look at Dumper.xs
* in Data::Dumper
*/
#if PERL_VERSION <= 15 && ! defined(utf8_to_uvchr_buf)
#define utf8_to_uvchr_buf(s, send, p_length) (utf8_to_uvchr(s, p_length))
#endif
/* Macro for testing whether we have at least a certain version of
* Freetype available. */
#define QEFFT2_FT_AT_LEAST(major, minor, patch) \
FREETYPE_MAJOR > major || \
(FREETYPE_MAJOR == major && \
(FREETYPE_MINOR > minor || \
(FREETYPE_MINOR == minor && FREETYPE_PATCH >= patch)))
/* Define the newer names for constants in terms of the old names if we're
* compiling against an old version of the library. These uppercase
* constants, which are defined in enums, were added in Freetype 2.1.3. */
FreeType.xs view on Meta::CPAN
ensure_glyph_loaded(face, glyph);
extra = face->generic.data;
if (!extra->glyph_ft)
errchk(FT_Get_Glyph(face->glyph, &extra->glyph_ft),
"getting glyph object from freetype");
return extra->glyph_ft->format == FT_GLYPH_FORMAT_OUTLINE;
}
/* Macros to help the outline event handlers call Perl code */
#define QEFFT2_CALL_PREP dSP; ENTER; SAVETMPS; PUSHMARK(SP);
#define QEFFT2_NUM(num) ((double) (num) / 64.0)
#define QEFFT2_PUSH_NUM(num) XPUSHs(sv_2mortal(newSVnv((double) num / 64.0)));
#define QEFFT2_PUSH_DNUM(num) XPUSHs(sv_2mortal(newSVnv(num)));
#define QEFFT2_CALL(code) PUTBACK; call_sv(code, G_DISCARD);
#define QEFFT2_CALL_TIDY FREETMPS; LEAVE;
static int
handle_move_to (const FT_Vector *to, void *data)
{
( run in 0.496 second using v1.01-cache-2.11-cpan-483215c6ad5 )