cybercog / php-svg-font
PHP SVG字体解析器
1.0.0
2024-01-04 13:05 UTC
Requires
- php: ^8.1
- cybercog/php-unicode: ^1.0
Requires (Dev)
- ext-simplexml: *
- phpunit/phpunit: ^10.5
Suggests
- ext-simplexml: *
This package is auto-updated.
Last update: 2024-09-04 18:02:56 UTC
README
简介
PHP SVG字体文件读取器和操作器。它使用PHP Unicode包作为底层。
安装
通过Composer引入包。
composer require cybercog/php-svg-font
使用
实例化FontList对象
$fontList = \Cog\SvgFont\FontList::ofFile(__DIR__ . '/DejaVuSans.svg');
从FontList中检索SvgFont对象
$font = \Cog\SvgFont\FontList::ofFile(__DIR__ . '/DejaVuSans.svg')->getById('DejaVuSans');
许可证
PHP SVG Font
包是开源软件,由MIT许可证授权,由Anton Komarev发布。
关于CyberCog
CyberCog是一个热衷于研究的社交群体。研究产品及软件开发中的最佳解决方案是我们的热情所在。