Comments (11)
Original comment by Bart van Strien (Bitbucket: bartbes, GitHub: bartbes).
Assigning this to bill, who worked on fonts for 0.7.0.
from love.
Original comment by Bill Meltsner (Bitbucket: bmelts, GitHub: bmelts).
I'd bet you twenty bucks that this is yet another power-of-2 issue, something that I'm really getting sick of. (Dear robin-gvx: your graphics card sucks and I hate it.)
I know we don't pad things by default anymore, but we should probably consider doing that for fonts. Thoughts, bartbes?
from love.
Original comment by Bart van Strien (Bitbucket: bartbes, GitHub: bartbes).
Ehm, why would you ever not want to pad fonts?
from love.
Original comment by Robin Wellner (Bitbucket: gvx, GitHub: gvx).
I hate my graphics card (and drivers) too, but yeah, why not do them like they were done in 0.6?
from love.
Original comment by Bill Meltsner (Bitbucket: bmelts, GitHub: bmelts).
Okay, this is nominally fixed in <<changeset 079397ac976b>> but I don't have a computer to test it on. It'd be awesome if someone without non-power-of-2 texture support could test out the latest revision and see if fonts show up for them.
from love.
Original comment by Andrzej Giniewicz (Bitbucket: giniu, GitHub: giniu).
It seems strange, but with r355 and even simple Hello World from wiki, so:
#!lua
function love.draw()
love.graphics.print('Hello World!', 400, 300)
end
I'm getting
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff55b8359 in free () from /lib/libc.so.6
(gdb) bt
#0 0x00007ffff55b8359 in free () from /lib/libc.so.6
#1 0x0000000000411f4a in love::font::GlyphData::pad() ()
#2 0x0000000000412741 in love::font::freetype::TrueTypeRasterizer::getGlyphData(unsigned short) const ()
#3 0x0000000000413c67 in love::font::FontData::FontData(love::font::Rasterizer*) ()
#4 0x0000000000412fc4 in love::font::freetype::Font::newFontData(love::font::Rasterizer*) ()
#5 0x000000000041295e in love::font::freetype::w_newFontData(lua_State*) ()
#6 0x00007ffff6aaa79d in ?? () from /usr/lib/liblua.so
#7 0x00007ffff6aaac24 in ?? () from /usr/lib/liblua.so
#8 0x00007ffff6aa67b6 in lua_call () from /usr/lib/liblua.so
#9 0x0000000000410f72 in love::luax_convobj(lua_State*, int, char const*, char const*) ()
#10 0x0000000000450337 in love::graphics::opengl::w_setFont1(lua_State*) ()
#11 0x00007ffff6aaa79d in ?? () from /usr/lib/liblua.so
#12 0x00007ffff6ab54cc in ?? () from /usr/lib/liblua.so
#13 0x00007ffff6aaac6d in ?? () from /usr/lib/liblua.so
#14 0x00007ffff6aa9ef7 in ?? () from /usr/lib/liblua.so
#15 0x00007ffff6aaae32 in ?? () from /usr/lib/liblua.so
#16 0x00007ffff6aa6851 in lua_pcall () from /usr/lib/liblua.so
#17 0x00007ffff6ab7bec in ?? () from /usr/lib/liblua.so
#18 0x00007ffff6aaa79d in ?? () from /usr/lib/liblua.so
#19 0x00007ffff6ab55e1 in ?? () from /usr/lib/liblua.so
#20 0x00007ffff6aaac6d in ?? () from /usr/lib/liblua.so
#21 0x00007ffff6aa67b6 in lua_call () from /usr/lib/liblua.so
#22 0x0000000000489a44 in main ()
I don't know if this is exactly after only r355 or later few speed-up revisions (wasn't checking right after), though it seems related so I decided to post it here :)
from love.
Original comment by Bill Meltsner (Bitbucket: bmelts, GitHub: bmelts).
I would wager that's an issue with me being dumb and using the wrong delete in pad() (and perhaps with Mac OS X being somewhat... generous with what it allows, code-wise). Try the latest revision?
from love.
Original comment by Linus (Bitbucket: thelinx, GitHub: thelinx).
Well, it doesn't segfault anymore. However, like I mentioned in IRC, I'm not sure if it actually //works//...
from love.
Original comment by Robin Wellner (Bitbucket: gvx, GitHub: gvx).
I get a segfault too, when giving love-hg a wrongly-packaged directory.
from love.
Original comment by Andrzej Giniewicz (Bitbucket: giniu, GitHub: giniu).
current tip works for me, no segfault, though I cannot tell about original issue as it always worked for me
from love.
Original comment by Bart van Strien (Bitbucket: bartbes, GitHub: bartbes).
Oh I fixed it (confirmed by robin in IRC), of course our friend here assumed too much...
from love.
Related Issues (20)
- "No game" screen in folder with "main.lua" file present HOT 1
- love.data.unpack arg #3 default is no 1 HOT 1
- love.data.hash container output typed for love 12.0 HOT 1
- Request: MeshDrawMode: lines HOT 3
- Keyboard and mouse button states are lost when love.window.setMode() is called (11.5 on Windows) HOT 3
- Request: Add x and y params to filedropped() and directorydropped() event callbacks HOT 3
- Multithreaded job/task system HOT 3
- Request: ability to bind a texture to a shader at specific mipmap level HOT 6
- Request: Love2D Android app ability to import and store .love files in its own directory (similar to iOS version) HOT 6
- Feature request: love.filesystem.newTempFile HOT 7
- Bug: File:read() returns empty string instead of nil when past end of file HOT 2
- Low FPS on certain monitor HOT 6
- love.data.compress causes a segfault on macOS Big Sur (LOVE 11.5) HOT 9
- Regression 11.5: key events not triggered when an IME language is active (windows) HOT 12
- [12.0] C++ exception with newShader() and Vulkan renderer
- (Android/IOS) Display rotation control HOT 1
- [Linux] Add better packaging/distribution options HOT 20
- Brew install fails on macOS with: Error : SHA256 mismatch HOT 1
- Mouse is not updating on right / bottom screen edge (DPI scale > 100%) HOT 7
- Add a way to get Video duration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from love.