/[Frey]/trunk/lib/Frey/Cairo.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Frey/Cairo.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1113 by dpavlin, Sat Dec 13 16:52:50 2008 UTC revision 1114 by dpavlin, Mon Jun 29 18:28:26 2009 UTC
# Line 6  with 'Frey::Web'; Line 6  with 'Frey::Web';
6  #with 'Frey::Storage';  #with 'Frey::Storage';
7    
8  use Cairo;  use Cairo;
9    use Font::FreeType;
10    
11  has path => (  has path => (
12          is => 'rw',          is => 'rw',
# Line 59  has text => ( Line 60  has text => (
60  sub as_markup {  sub as_markup {
61          my ($self) = @_;          my ($self) = @_;
62    
   
         unless (Cairo::HAS_FT_FONT && eval 'use Font::FreeType; 1;') {  
                 die 'need Cairo with FreeType support and Font::FreeType';  
         }  
   
63          my @fonts = (          my @fonts = (
64                  '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf',                  '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf',
65                  '/usr/share/fonts/truetype/ttf-inconsolata/Inconsolata.otf',                  '/usr/share/fonts/truetype/ttf-inconsolata/Inconsolata.otf',

Legend:
Removed from v.1113  
changed lines
  Added in v.1114

  ViewVC Help
Powered by ViewVC 1.1.26