Skip to content

Linux compatibility #89

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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