Skip to content

Linux compatibility #89

@orswan

Description

@orswan

The following code works properly on Windows, but outputs a zero array on Linux:

using FreeTypeAbstraction, Images, FileIO

sz = (128,128)
str = "c"
pixelsize = sz[2] ÷ length(str)
face = findfont("arial bold")
x0, y0 = sz .÷ 2
arr = zeros(UInt8,sz...)
renderstring!(arr,str,face,pixelsize, x0, y0; halign=:hcenter, valign=:vcenter)

Gray.(convert.(Float64,arr)./255)

Windows output:

windows_output

Linux output:

linux_out

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions