Font::Fontconfig::Pattern - An Object Oriented interface to fontconfig patterns
my $char = char( hex '2761' ); say "Char is: <$char>" if $font_pattern->contains_codepoint( ord $char );
Object from this class provide some utillity methods for inspecting font-patterns, generated by Font::Fontconfig methods.
The (only) constructor to create a new object. It takes a string returned by fc-list
fc-list
my $bool = $font_pattern->contains_codepoint( $ordinal )
Returns 'true' if a font, described by the $font_pattern contains the given codepoint.
$font_pattern
$ordinal
the ordinal number of the character or glyph, usually produced by ord $char.
ord $char
Theo van Hoesel <tvanhoesel@perceptyx.com>
'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.
To install Font::Fontconfig, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Font::Fontconfig
CPAN shell
perl -MCPAN -e shell install Font::Fontconfig
For more information on module installation, please visit the detailed CPAN module installation guide.