chapter-three / AppleNewsAPI

This is a PHP library that allows you to publish content to Apple News and construct documents in the Apple News JSON format.
MIT License
38 stars 26 forks source link

Add extra TextStyle and ComponentTextStyle properties #32

Open dabley opened 2 years ago

dabley commented 2 years ago

These changes add support for a number of additional TextStyle and ComponentTextStyle properties:

Extra TextStyle properties:

Extra ComponentTextStyle properties:

The TextStyle::fontWeight property is allowed to be a string or an integer, so that it can be set to a named font weight (e.g. "medium") or a numeric one (e.g. 500). (Applenews doesnt allow numeric font weights to be supplied as strings - so "500" is not valid.)

The ComponentTextStyle::linkStyle property can now optionally be set using an array, which makes things easier when creating a ComponentTextStyle object.