Font::FreeType::Glyph

Description

Font::FreeType::Glyph is a Perl module that contains glyphs from font typefaces loaded from Font::FreeType. SYNOPSIS use Font::FreeType; my $freetype = Font::FreeType->new; my $face = $freetype->face(Vera.ttf); $face->set_char_size(24, 24, 100, 100); my $glyph = $face->glyph_from_char(A); my $glyph = $face->glyph_from_char_code(65); # Render into an array of strings, one byte per pixel. my ($bitmap, $left, $top) = $glyph->bitmap; # Read vector outline. $glyph->outline_decompose( move_to => sub { ... }, line_to => sub { ... }, conic_to => sub { ... }, cubic_to => sub { ... }, ); This class represents an individual glyph (character image) loaded from a font. See Font::FreeType::Face for how to obtain a glyph object, in particular the glyph_from_char_code() and glyph_from_char() methods. Things you an do with glyphs include: · Get metadata about the glyph, such as the size of its image and other metrics. · Render a bitmap image of the glyph (if its from a vector font) or extract the existing bitmap (if its from a bitmap font), using the bitmap() method. · Extract a precise description of the lines and curves that make up the glyphs outline, using the outline_decompose() method..

Freetype - Fontfreetypeglyph - Perl Module - Glyph - Font - Glyphs - Bitmap - Loaded - Char - Libraries - Programming

Published By:Geoff Richards

License Type:Freeware

Date Added:22 October, 2010

Version:0.03

Price:Free

Downloads:325

Size:95.2 KB

Platform: Linux

What people say
- required fields
     
Related Downloads

wGui is a platform independent dialog management library based on SDL (Simple Direct-Media Layer) and Freetype 2. wGuis purpose is to fill the small niche of a GUI library for SDL.

DateSep 26, 2010

AuthorRob Wiskow

Size1024.0 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

Data::Encrypted is a Perl module to transparently store encrypted data via RSA. SYNOPSIS # functional interface: use Data::Encrypted file => "./.

DateAug 12, 2010

AuthorAaron J Mackey

Size7.2 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

XML::Generator::vCard is a Perl module that can generate SAX2 events for vCard 3.

DateOct 4, 2010

AuthorAaron Straup Cope

Size7.2 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

WWW::Webrobot::pod::Testplan is a Perl module that helps you on how to write a test plan for webrobot. A test plan is a list of elements. An element itself may be a request, a (sub) test plan, an include or a cookie control command.

DateAug 25, 2010

AuthorABAS Software AG

Size98.3 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

Test::Stochastic is a Perl module to check probabilities of randomized methods. SYNOPSIS use Test::Stochastic qw(stochastic_ok); stochastic_ok sub { ...random sub...}, {a => 0.4, b => 0.6}; stochastic_ok {a => 0.4, b => 0.

DateAug 26, 2010

AuthorAbhijit Mahabal

Size4.1 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming