The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
package Imager::Font::Win32;
use strict;
use vars qw(@ISA);
@ISA = qw(Imager::Font);

# called by Imager::Font::new()
# since Win32's HFONTs include the size information this
# is just a stub
sub new {
  my ($class, %opts) = @_;

  return bless \%opts, $class;
}

sub _bounding_box {
  my ($self, %opts) = @_;
  
  my @bbox = Imager::i_wf_bbox($self->{face}, $opts{size}, $opts{string});
}

sub _draw {
  my $self = shift;

  my %input = @_;
  if (exists $input{channel}) {
    Imager::i_wf_cp($self->{face}, $input{image}{IMG}, $input{x}, $input{'y'},
		    $input{channel}, $input{size},
		    $input{string}, $input{align}, $input{aa});
  }
  else {
    Imager::i_wf_text($self->{face}, $input{image}{IMG}, $input{x}, 
		      $input{'y'}, $input{color}, $input{size}, 
		      $input{string}, $input{align}, $input{aa});
  }
}


1;

__END__

=head1 NAME

Imager::Font::Win32 - uses Win32 GDI services for text output

=head1 SYNOPSIS

  my $font = Imager::Font->new(face=>"Arial");

=head1 DESCRIPTION

Implements font support using Win32 GDI calls.  See Imager::Font for 
usage information.

=cut