Git Product home page Git Product logo

freetype.jl's People

Contributors

aaalexandrov avatar femtocleaner[bot] avatar giordano avatar gnimuc avatar jaakkor2 avatar jhasse avatar juliatagbot avatar kristofferc avatar sambitdash avatar simondanisch avatar sjkelly avatar tkelman avatar wookay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

freetype.jl's Issues

Backport for Julia v0.6.4?

Could commit 3eefba5 be backported for Julia v0.6.4 compatibility? Currently, Makie can't build on Julia v0.6.4 because Freetype.jl can find the tarball to download.

julia> Pkg.build("FreeType")
INFO: Building FreeType
Info: Downloading https://github.com/Gnimuc/FreeTypeBuilder/releases/download/v2.9/FreeType2.x86_64-linux-gnu.tar.gz to /home/rick/.julia/v0.6/FreeType/deps/usr/downloads/FreeType2.x86_64-linux-gnu.tar.gz...
[21:55:42] 
[21:55:42] curl: (6) Could not resolve host: github.com
=================================================[ ERROR: FreeType ]==================================================

LoadError: Could not download https://github.com/Gnimuc/FreeTypeBuilder/releases/download/v2.9/FreeType2.x86_64-linux-gnu.tar.gz to /home/rick/.julia/v0.6/FreeType/deps/usr/downloads/FreeType2.x86_64-linux-gnu.tar.gz
while loading /home/rick/.julia/v0.6/FreeType/deps/build.jl, in expression starting on line 30

======================================================================================================================

===================================================[ BUILD ERRORS ]===================================================

WARNING: FreeType had build errors.

 - packages with build errors remain installed in /home/rick/.julia/v0.6
 - build the package(s) and all dependencies with `Pkg.build("FreeType")`
 - build a single package by running its `deps/build.jl` script

======================================================================================================================

Passing `FT_LOAD_RENDER` on `FT_Load_Glyph()` doesn't work

Rendering it manually, the bitmap data exists:

julia> using FreeType, CSyntax; ft_lib::FT_Library = C_NULL; ft_err = @c FT_Init_FreeType(&ft_lib); @assert(ft_err == 0); ft_face::FT_Face = C_NULL; ft_err = @c FT_New_Face(ft_lib, "assets/JetBrainsMono-Bold.ttf", 0, &ft_face); ft_result = @c FT_Get_Char_Index(ft_face, '®'); ft_err = @c FT_Load_Glyph(ft_face, ft_result, 0); @assert(ft_err == 0); ft_glyph = unsafe_load(ft_face).glyph; ft_err = @c FT_Render_Glyph(ft_glyph, FT_RENDER_MODE_NORMAL); unsafe_load(ft_glyph).bitmap

FT_Bitmap_(0x0000000b, 0x00000009, 9, Ptr{UInt8} @0x000001cbfdd9ef60, 0x0100, 0x02, 0x00, Ptr{Nothing} @0x0000000000000000)

But rendering it using the flag FT_LOAD_RENDER, which is supposed to call FT_Render_Glyph() automatically, the bitmap data does not exist:

julia> using FreeType, CSyntax; ft_lib::FT_Library = C_NULL; ft_err = @c FT_Init_FreeType(&ft_lib); @assert(ft_err == 0); ft_face::FT_Face = C_NULL; ft_err = @c FT_New_Face(ft_lib, "assets/JetBrainsMono-Bold.ttf", 0, &ft_face); ft_result = @c FT_Get_Char_Index(ft_face, '®'); ft_err = @c FT_Load_Glyph(ft_face, ft_result, FT_LOAD_RENDER); @assert(ft_err == 0); ft_glyph = unsafe_load(ft_face).glyph; unsafe_load(ft_glyph).bitmap

FT_Bitmap_(0x00000000, 0x00000000, 0, Ptr{UInt8} @0x0000000000000000, 0x0000, 0x00, 0x00, Ptr{Nothing} @0x0000000000000000)

LoadError: FreeType library could not be found on macOS

Got the following while building FreeType (Julia 0.5, macOS Sierra) :

INFO: Building FreeType
==============================[ ERROR: FreeType ]===============================

LoadError: FreeType library could not be found. Please file an issue here: https://github.com/jhasse/FreeType.jl/issues/new
while loading /Users/igor/.julia/FreeType/deps/build.jl, in expression starting on line 18

Homebrew tells me that freetype-2.6_1 already installed, maybe someone could help?

tagging FreeType

Hi,
would it be possible to tag FreeType?
On OSX this is still failing with the current tag!
Thanks a lot!

Simon

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

FreeType will no longer work on Julia <1.3

Because the deps/build.jl script was removed, the FreeType binary no longer gets installed on any Julia version which doesn't support artifacts. We can support those by re-adding the build script, and checking for the version at the start.

LoadError: FreeType library could not be found.

Hey I am running ubuntu and got the following error:

==============================[ ERROR: FreeType ]===============================

LoadError: FreeType library could not be found. Please file an issue here: https://github.com/jhasse/FreeType.jl/issues/new
while loading /home/jan/.julia/v0.4/FreeType/deps/build.jl, in expression starting on line 18

================================================================================

================================[ BUILD ERRORS ]================================

WARNING: FreeType had build errors.

  • packages with build errors remain installed in /home/jan/.julia/v0.4
  • build the package(s) and all dependencies with Pkg.build("FreeType")
  • build a single package by running its deps/build.jl script

whilst trying to build FreeType in julia termanl

no check_deps anymore..

From recent update:

julia> using FreeType
ERROR: InitError: UndefVarError: check_deps not defined
Stacktrace:
 [1] __init__() at $HOME.6/FreeType/src/FreeType.jl:19
 [2] _include_from_serialized(::String) at ./loading.jl:157
 [3] _require_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:200
 [4] _require_search_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:236
 [5] _require(::Symbol) at ./loading.jl:441
 [6] require(::Symbol) at ./loading.jl:405
during initialization of module FreeType

Mac OS can't find suitable image

julia> using FreeType

julia> library = Array(FT_Library, 1)
1-element Array{Ptr{FreeType.FT_LibraryRec_},1}:
 Ptr{FreeType.FT_LibraryRec_} @0x0000000103b3fdf0

julia> error = FT_Init_FreeType(library)
dlerror loading '': dlopen(/Users/epn/.julia/v0.4/Homebrew/deps/usr/lib/, 5): no suitable image found.  Did find:
    /Users/epn/.julia/v0.4/Homebrew/deps/usr/lib/: not a file
ERROR: error compiling FT_Init_FreeType: could not load library

Download fails

@scalanoob gets these messages:

INFO: Downloading https://cache.e.ip.saba.us/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_13.1/repodata/repomd.xml
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Unknown download failure, error code: 2148270086
WARNING: Retry 1/5 downloading: https://cache.e.ip.saba.us/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270086
WARNING: Retry 2/5 downloading: https://cache.e.ip.saba.us/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270086
WARNING: Retry 3/5 downloading: https://cache.e.ip.saba.us/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270086
WARNING: Retry 4/5 downloading: https://cache.e.ip.saba.us/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270086
WARNING: Retry 5/5 downloading: https://cache.e.ip.saba.us/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_13.1/repodata/repomd.xml
WARNING: received error 0 while downloading https://cache.e.ip.saba.us/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_13.1/repodata/repomd.xml
INFO: Downloading https://cache.e.ip.saba.us/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270086
WARNING: Retry 1/5 downloading: https://cache.e.ip.saba.us/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270086
WARNING: Retry 2/5 downloading: https://cache.e.ip.saba.us/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270086
WARNING: Retry 3/5 downloading: https://cache.e.ip.saba.us/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270086
WARNING: Retry 4/5 downloading: https://cache.e.ip.saba.us/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270086
WARNING: Retry 5/5 downloading: https://cache.e.ip.saba.us/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml
WARNING: received error 0 while downloading https://cache.e.ip.saba.us/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml

Which results in:

LoadError: Package candidate for libfreetype6 not found
while loading C:\Users\andre\.julia\v0.4\FreeType\deps\build.jl, in expression starting on line 5

@scalanoob can you see if this is reproducible, by doing Pkg.add("FreeType");Pkg.build("FreeType") again?
It might have been a problem with your internet.

warnings on 0.5

INFO: Building FreeType
WARNING: `@windows_only` is deprecated, use `@static if is_windows()` instead
 in depwarn(::String, ::Symbol) at ./deprecated.jl:64
 in depwarn(::String, ::Symbol) at /Users/viral/Desktop/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?
 in @windows_only(::Any) at ./deprecated.jl:488
 in include_from_node1(::String) at ./loading.jl:488
 in include_from_node1(::String) at /Users/viral/Desktop/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?
 in evalfile(::String, ::Array{String,1}) at ./loading.jl:504 (repeats 2 times)
 in cd(::##2#4, ::String) at ./file.jl:59
 in (::##1#3)(::IOStream) at ./none:13
 in open(::##1#3, ::String, ::String) at ./iostream.jl:113
 in eval(::Module, ::Any) at ./boot.jl:234
 in eval(::Module, ::Any) at /Users/viral/Desktop/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?
 in process_options(::Base.JLOptions) at ./client.jl:239
 in _start() at ./client.jl:318
 in _start() at /Users/viral/Desktop/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?
while loading /Users/viral/.julia/v0.5/FreeType/deps/build.jl, in expression starting on line 3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.