Open monyarm opened 3 years ago
Hmm if the font does exist, and since I've checked many times and it renders fine here, it seems to be a problem with vips. Which version of vips are you using?
Vips-8.10.5
On Tue, Mar 23, 2021, 5:36 PM Henrique Santana @.***> wrote:
Hmm if the font does exist, and since I've checked many times and it renders fine here, it seems to be a problem with vips. Which version of vips are you using?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/piface314/ygo-fabrica/issues/11#issuecomment-805004123, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXHJKTTOY72LQM5PHAGGQ3TFCYPXANCNFSM4ZVNJIZA .
I really have no clue what's going on then. Try running luajit in interactive mode and copying these lines:
package.path = package.path .. ";/home/monyarm/.local/ygofab/modules/share/lua/5.1/?.lua;/home/monyarm/.local/ygofab/modules/share/lua/5.1/?/init.lua"
vips = require 'vips'
vips.Image.text("Hello, World!", {font = "MatrixBoldSmallCaps 5", fontfile = "/home/monyarm/.local/ygofab/res/composer/fonts/values.ttf", dpi = 300}):write_to_file("text.png")
This is the output I get:
Tell me if this error happens again in this way.
> vips.Image.text("Hello, World!", {font = "MatrixBoldSmallCaps 5",
fontfile = "/home/monyarm/.local/ygofab/res/composer/fonts/values.ttf", dpi
= 300}):write_to_file("text.png")
.../.local/ygofab/modules/share/lua/5.1/vips/voperation.lua:245: unable to
call text
text: unable to load font
"/home/monyarm/.local/ygofab/res/composer/fonts/values.ttf"
stack traceback:
[C]: in function 'error'
.../.local/ygofab/modules/share/lua/5.1/vips/voperation.lua:245: in
function 'text'
stdin:1: in main chunk
[C]: at 0x560b6e1582a0
On Tue, Mar 23, 2021 at 5:51 PM Henrique Santana @.***> wrote:
I really have no clue what's going on then. Try running luajit in interactive mode and copying these lines:
package.path = package.path .. ";/home/monyarm/.local/ygofab/modules/share/lua/5.1/?.lua;/home/monyarm/.local/ygofab/modules/share/lua/5.1/?/init.lua" vips = require 'vips' vips.Image.text("Hello, World!", {font = "MatrixBoldSmallCaps 5", fontfile = "/home/monyarm/.local/ygofab/res/composer/fonts/values.ttf", dpi = 300}):write_to_file("text.png")
This is the output I get: [image: text] https://user-images.githubusercontent.com/22157025/112175727-3d248d80-8bd6-11eb-98d2-e52c6c4a024c.png
Tell me it this error happens again in this way.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/piface314/ygo-fabrica/issues/11#issuecomment-805015921, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXHJKUIXLAQULVS7NZVXLTTFC2HNANCNFSM4ZVNJIZA .
Check if you can open that font with your default font browser or something like that (just to see if the font itself is ok). If it is, then I would suggest posting that error on libvips issues, since it seems to be something with the library. Maybe when you installed it, it did not get support for .ttf
fonts?
The font loads in other software. I guess it's a vips issue then.
On Tue, Mar 23, 2021, 6:10 PM Henrique Santana @.***> wrote:
Check if you can open that font with your default font browser or something like that (just to see if the font itself is ok). If it is, then I would suggest posting that error on libvips issues https://github.com/libvips/libvips/issues, since it seems to be something with the library. Maybe when you installed it, it did not get support for .ttf fonts?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/piface314/ygo-fabrica/issues/11#issuecomment-805031216, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXHJKQVNS6IWECMWOYF2N3TFC4NXANCNFSM4ZVNJIZA .
I've checked, the font does exist.