Git Product home page Git Product logo

Comments (4)

mosra avatar mosra commented on April 29, 2024

Hi, thanks for your interest in this library.

The FreeTypeFont plugin is not an error, it is available in magnum-plugins repository. It requires FreeType library, but I don't know if it is easily available for OSX.

The MagnumFont plugin doesn't have FreeType dependency, but is far more limited, as you need to pregenerate all glyphs to a file which you then load. It requires TgaImporter plugin, which needs its own manager instance to be successfully loaded, as mentioned in the docs. Also it has its own file format which needs to be converted from TTF files (e.g.) using the magnum-fontconverter utility.

Anyway, if you want to try it without too much hassle, check out ports branch where the text example uses MagnumFont and has everything needed in place.

from magnum.

Angluca avatar Angluca commented on April 29, 2024

I install plugins (freetypefont) , But still error when I run text exmaple.
Using optional features:
GL_APPLE_vertex_array_object
GL_ARB_ES2_compatibility
GL_ARB_separate_shader_objects
GL_ARB_texture_storage
GL_EXT_debug_label
GL_EXT_debug_marker
GL_EXT_texture_filter_anisotropic
Shader::compile(): compilation of fragment shader 2 failed with the following message:
ERROR: 2:86: Initializer not allowed
ERROR: 2:96: Use of undeclared identifier 'position'
ERROR: 2:100: Use of undeclared identifier 'isInside'
ERROR: 2:110: Initializer not allowed
ERROR: 2:118: Use of undeclared identifier 'position'
ERROR: 2:118: Use of undeclared identifier 'offset'
ERROR: 2:118: Use of undeclared identifier 'isInside'
ERROR: 2:119: Use of undeclared identifier 'position'
ERROR: 2:119: Use of undeclared identifier 'offset'
ERROR: 2:119: Use of undeclared identifier 'isInside'
ERROR: 2:120: Use of undeclared identifier 'position'
ERROR: 2:120: Use of undeclared identifier 'offset'
ERROR: 2:120: Use of undeclared identifier 'isInside'
ERROR: 2:121: Use of undeclared identifier 'position'
ERROR: 2:121: Use of undeclared identifier 'offset'
ERROR: 2:121: Use of undeclared identifier 'isInside'
ERROR: 2:123: Use of undeclared identifier 'offset'
ERROR: 2:123: Use of undeclared identifier 'offset'
ERROR: 2:130: Use of undeclared identifier 'distanceSquared'
ERROR: 2:131: Use of undeclared identifier 'distanceSquared'
ERROR: 2:137: Use of undeclared identifier 'offset'
ERROR: 2:146: Attempt to use 'sign' as a variable
Assertion Shader::compile({vert, frag}) failed in /Users/xxx/SDK/magnum_sdk/magnum/src/Magnum/TextureTools/DistanceField.cpp on line 96

from magnum.

mosra avatar mosra commented on April 29, 2024

It seems that the GL driver on OSX doesn't like GLSL const keyword, I'll try to work around that. In the meantime, if you try the text example from ports branch, it should work without issues.

The cubemap example currently requires OpenGL 4.3, which is a mistake.

Will fix these later today, hopefully :-) Thank you very much for reporting the issues.

from magnum.

mosra avatar mosra commented on April 29, 2024

Should be fixed in 6fa9d36.

from magnum.

Related Issues (20)

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.