=head1 NAME

Font::Fontconfig::Pattern - An Object Oriented interface to fontconfig patterns



=head1 SYNOPSIS

    my $char = char( hex '2761' );
    
    say "Char is: <$char>" if $font_pattern->contains_codepoint( ord $char );



=head1 DESCRIPTION

Object from this class provide some utillity methods for inspecting
font-patterns, generated by L<Font::Fontconfig> methods.




=head1 CLASS METHODS



=head2 new_from_string

The (only) constructor to create a new object. It takes a string returned by
C<fc-list>



=head1 INSTANCE METHODS



=head2 contains_codepoint

    my $bool = $font_pattern->contains_codepoint( $ordinal )

Returns 'true' if a font, described by the C<$font_pattern> contains the given
codepoint.

=head3 positional parameters

=over

=item C<$ordinal>

the ordinal number of the character or glyph, usually produced by C<ord $char>.

=back



=head1 AUTHOR

Theo van Hoesel <tvanhoesel@perceptyx.com>



=head1 COPYRIGHT AND LICENSE

'Font::Fontconfig::Pattern' is Copyright (C) 2019 .. 2020, Perceptyx Inc

This library is free software; you can redistribute it and/or modify it under
the terms of the Artistic License 2.0.

This library is distributed in the hope that it will be useful, but it is
provided "as is" and without any express or implied warranties.

For details, see the full text of the license in the file LICENSE.


=cut
