bgfx icon indicating copy to clipboard operation
bgfx copied to clipboard

Font bleeding

Open cyberkm opened this issue 9 years ago • 12 comments

Running examples on linux machine (ATI Radeon HD 6900 series, latest amd official driver) Have an issue with font examples

This is a normal font example fontsexample1

and this is a sdf example fontsdf

Tell me if you need any additional info

cyberkm avatar Apr 12 '15 09:04 cyberkm

I was unable to reproduce this on R7 240 with 15.200.1012.2 driver. What's exact version of your driver?

bkaradzic avatar Apr 13 '15 02:04 bkaradzic

Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Antilles [Radeon HD 6990]

Driver version: fglrx 15.20.2 [Feb 27 2015]

cyberkm avatar Apr 14 '15 18:04 cyberkm

screenshot-catalyst control center

cyberkm avatar Apr 14 '15 18:04 cyberkm

@cyberkm My own experiences with AMD cards and Linux has been miserable. Does the problem occur elsewhere on your system? Also, which distro are you running? I've been working lots with bgfx lately and next week I should be obtaining a new power supply to run tests with my spare 7970 (eventually got fed up, went nVidia for daily use) and I'll try to reproduce the issue then.

ColinGilbert avatar May 01 '15 20:05 ColinGilbert

Gentoo ~amd64.

Latest distro driver installed by #emerge ati-drivers

If I'll have free time I will try to debug the issue. The problem is that I have no spare time at the moment. :(

cyberkm avatar May 01 '15 22:05 cyberkm

Hah. Same feeling. Frankly Gentoo was the only OS that would accept any wierd driver. Glad to see another Gentoo person. It'll make setting up a test environment a bit easier than using one of the lesser distros :P

ColinGilbert avatar May 02 '15 02:05 ColinGilbert

Same artifacts here.

Apple x86_64 MacBookAir4,1 4 cpus MacOS Version 10.10.3

BGFX Graphics debugger is not present. BGFX Supported capabilities (renderer OpenGL 2.1, vendor 0x0000, device 0x0000): BGFX BGFX_CAPS_TEXTURE_COMPARE_LEQUAL BGFX BGFX_CAPS_TEXTURE_COMPARE_ALL BGFX BGFX_CAPS_TEXTURE_3D BGFX BGFX_CAPS_VERTEX_ATTRIB_HALF BGFX BGFX_CAPS_INSTANCING BGFX BGFX_CAPS_RENDERER_MULTITHREADED BGFX BGFX_CAPS_FRAGMENT_DEPTH BGFX BGFX_CAPS_INDEX32

RichardGale avatar May 13 '15 02:05 RichardGale

Update: Ubuntu 15.04 64bit Same device as before, same driver version (but from official Ubuntu repository now)

Same bug :)

cyberkm avatar Aug 26 '15 20:08 cyberkm

Ok, I see, its not related to driver, i just ran it on Ubuntu 15.04 64bit with same graphic card but different driver (opensource one) and mesa 10.5.9. Same bleeding.

cyberkm avatar Aug 29 '15 06:08 cyberkm

screen shot 2016-06-29 at 10 11 02 am Adding an outline of 1, consistent with the black glyph:

///make sure the black glyph doesn't bleed by using a one pixel inner outline
m_blackGlyph.regionIndex = m_atlas->addRegion(W, W, buffer, AtlasRegion::TYPE_GRAY, 1);

e.g.

bool FontManager::addBitmap(GlyphInfo& _glyphInfo, const uint8_t* _data) { _glyphInfo.regionIndex = m_atlas->addRegion( (uint16_t) ceil(_glyphInfo.width), (uint16_t) ceil(_glyphInfo.height), _data, AtlasRegion::TYPE_GRAY, 1); <<== 1 return true; }

resolves this in my case.

RichardGale avatar Jun 29 '16 17:06 RichardGale

Having the same exact issue on Arch Linux with a pretty old Radeon HD 6870. I'm using the open source radeon driver.

jryan128 avatar Oct 02 '16 14:10 jryan128

Even though this issue is pretty old, I still have the exact same problem on Arch Linux with Radeon RX 570.

ontes avatar Jul 13 '21 12:07 ontes