Re: DlangIDE v0.8.0 released

2017-09-28 Thread Vadim Lopatin via Digitalmars-d-announce

On Thursday, 28 September 2017 at 11:52:51 UTC, aberba wrote:

Can i use svg icons?


Currently SVG images are not supported.

This feature is planned for one of future releases.

Workaround: you can provide PNG icons for different screen DPI.



Re: DlangIDE v0.8.0 released

2017-09-28 Thread Vadim Lopatin via Digitalmars-d-announce

On Thursday, 28 September 2017 at 11:51:19 UTC, aberba wrote:
Does DLangUI support theming of the scrollbar? Paddings & 
margins?


It does. It's possible to change paddings, margins, look of 
scrollbar buttons and backgrounds.




Re: DlangIDE v0.8.0 released

2017-09-28 Thread aberba via Digitalmars-d-announce
On Thursday, 28 September 2017 at 11:25:35 UTC, Vadim Lopatin 
wrote:
On Thursday, 28 September 2017 at 06:27:03 UTC, Vadim Lopatin 
wrote:

On Wednesday, 27 September 2017 at 15:24:29 UTC, bitwise wrote:
One small thing though - when you use the LCD/BGR style 
fonts, you get a mismatch between the font metrics and bitmap 
size.


Fixed.

Screenshots:

http://buggins.github.io/dlangui/screenshots/screenshot-dlangide.png

http://buggins.github.io/dlangui/screenshots/screenshot-dlangide-dark.png

http://buggins.github.io/dlangui/screenshots/screenshot-dlangide-console-win32.png


Can i use svg icons?


Re: DlangIDE v0.8.0 released

2017-09-28 Thread aberba via Digitalmars-d-announce
On Thursday, 28 September 2017 at 11:25:35 UTC, Vadim Lopatin 
wrote:
On Thursday, 28 September 2017 at 06:27:03 UTC, Vadim Lopatin 
wrote:

On Wednesday, 27 September 2017 at 15:24:29 UTC, bitwise wrote:
One small thing though - when you use the LCD/BGR style 
fonts, you get a mismatch between the font metrics and bitmap 
size.


Fixed.

Screenshots:

http://buggins.github.io/dlangui/screenshots/screenshot-dlangide.png

http://buggins.github.io/dlangui/screenshots/screenshot-dlangide-dark.png

http://buggins.github.io/dlangui/screenshots/screenshot-dlangide-console-win32.png


Does DLangUI support theming of the scrollbar? Paddings & margins?


Re: DlangIDE v0.8.0 released

2017-09-28 Thread Vadim Lopatin via Digitalmars-d-announce
On Thursday, 28 September 2017 at 06:27:03 UTC, Vadim Lopatin 
wrote:

On Wednesday, 27 September 2017 at 15:24:29 UTC, bitwise wrote:
One small thing though - when you use the LCD/BGR style fonts, 
you get a mismatch between the font metrics and bitmap size.


Fixed.

Screenshots:

http://buggins.github.io/dlangui/screenshots/screenshot-dlangide.png

http://buggins.github.io/dlangui/screenshots/screenshot-dlangide-dark.png

http://buggins.github.io/dlangui/screenshots/screenshot-dlangide-console-win32.png



Re: goinsu - Switch user, group and execute a program - a tiny betterC program

2017-09-28 Thread jamonahn via Digitalmars-d-announce
On Wednesday, 27 September 2017 at 20:30:16 UTC, Anton Fediushin 
wrote:
Take a look at `.travis.yml`, since this is exactly what I am 
doing to build releases.


Thank you!  Exactly the know-how I was missing.


Re: DerelictSDL2 3.1.0-alpha.1

2017-09-28 Thread Claude via Digitalmars-d-announce

On Thursday, 28 September 2017 at 09:26:19 UTC, Claude wrote:

However, I did not find any SDL2-2.0.6 package for Ubuntu... :(


I built it, it works fine.


Re: DerelictSDL2 3.1.0-alpha.1

2017-09-28 Thread Claude via Digitalmars-d-announce

On Saturday, 23 September 2017 at 12:16:46 UTC, Mike Parker wrote:
SDL 2.0.6 was just released [1], so I've updated DerelictSDL2 
[2] to support it. It's available in DerelictSDL2 
3.1.0-alpha.1. I've tested that the loader works, but beyond 
that I've done nothing with it.


I also fixed some minor issues in the 3.0 branch, the latest 
release of which is 3.0.0-beta.7.


The 3.0 series supports SDL 2.0.0 - SDL 2.0.5, and the 3.1 
series supports SDL 2.0.0 - 2.0.6. The latter is currently not 
in the master branch (it's in the 3.1 branch), nor is it in the 
documentation. I'll move 3.1 development to master and update 
the docs once I pull it out of alpha.


[1] https://discourse.libsdl.org/t/sdl-2-0-6-released/23109
[2] https://github.com/DerelictOrg/DerelictSDL2


Great!

I made it work on Windows 10, with derelict-gl3 2.0.0-beta.4.

Rendering and mouse/keyboard input works with my little engine 
(https://github.com/claudemr/orb).


However, I did not find any SDL2-2.0.6 package for Ubuntu... :(


Re: DlangIDE v0.8.0 released

2017-09-28 Thread Vadim Lopatin via Digitalmars-d-announce

On Wednesday, 27 September 2017 at 15:24:29 UTC, bitwise wrote:
One small thing though - when you use the LCD/BGR style fonts, 
you get a mismatch between the font metrics and bitmap size.


So if you're using FT_LOAD_TARGET_LCD, then some of these may 
be true:


glyph.bitmap_left != (glyph.metrics.horiBearingX >> 6);
glyph.bitmap_top != (glyph.metrics.horiBearingY >> 6);
glyph.bitmap.width != (glyph.metrics.width >> 6);
glyph.bitmap.rows != (glyph.metrics.height >> 6);

The result could be a crash, clipping, or misalignment of 
glyphs, depending on the assumptions made by your blitting code.


I asked about this on the FT mailing list, and unfortunately, 
they don't believe that the 1 or 2 pixels of padding added to 
the bitmap to accommodate the LCD rendering belongs in metrics.


The fix is simply using bitmap_left, bitmap_top, bitmap.width, 
bitmap.height, instead of the metrics.


I was looking at the commits and saw that you added kerning, so 
was wondering if you hit this problem.


Thank you for advice.
It looks like I faced this problem when one of fonts was selected 
for UI.

Will fix.
As well, I see wrong monotype fonts character placement not 
aligned properly.