Skip to content

Instantly share code, notes, and snippets.

@bobh0303
bobh0303 / customCmapSearch.pl
Last active March 15, 2019 23:49
Find cmap based on caller-specified order of preference [updated]
use strict;
use Font::TTF::Font;
sub find_cmap
{
my ($f, $order) = @_;
# Should do parameter validation here
my ($cmap, %cmaps, $i);