Image version 0.59.1
Deprecation
- The option
:fontfiletoImage.Text.text/2is deprecated in favour of:font_fileto be compatible with other functions that use the same option name.
Bug Fixes
-
Remove pattern matching on
Stream.tinImage.open/2. Thanks to @dcrck for the PR. Closes #187. -
Fix
Image.Text.text/2when:heightis specified but not:width. In this case an error is returned since:heightcan only be specified if:widthis also specified. Thanks to @Neophen for the report. Closes #185. -
Fix
Image.Text.text/2when the option:font_weightis specified. The options:font_weightand:letter_spacingare implemented by wrapping the text in a Pango markupspantag. If thestringparameter starts with<spanthen these two options are ignored since this implies the user is taking full control of the markup. Closes #183. -
Add option documentation for
:font_filetoImage.Text.text/2and note the requirement to also specify:fontif:font_fileis specified. -
Clarify that
Image.Text.text/2option:font_fileis not supported on MacOS. On that platform, only FontBook fonts are supported. It is known to work on Linux. The status on Windows is currently unknown by the author - feedback would be welcome.