January 29, 2015
On Thursday, 29 January 2015 at 14:13:22 UTC, John Colvin wrote:
> On Wednesday, 28 January 2015 at 14:21:36 UTC, Vadim Lopatin wrote:
>> On Wednesday, 28 January 2015 at 13:37:34 UTC, John Colvin wrote:
>>> On Wednesday, 28 January 2015 at 10:57:57 UTC, Vadim Lopatin wrote:
>>>> BTW, could you try on mac https://github.com/buggins/dlangide.git as well?
>>>> It's dlangui-based D language IDE I'm currently working on.
>>>
>>> That works OK.
>>>
>>> The text is all horrible looking. This is probably due to (lack of) scaling support for high-res screens (retina).
>>
>> Is graphics scaled too? If so, it's due to scaling.
>> Otherwise possible it's due to bad implementation of subpixel antialiasing (aka ClearType).
>> I've submitted fix to disable subpixel antialiasing.
>
> An example of what I see (with up-to-date git HEAD)
>
> https://www.dropbox.com/s/49n9m0b9uutzaa8/Screenshot%202015-01-29%2014.11.57.png?dl=0

I see no additional blur comparing with other platforms.
It's bad font rendering. Trying to improve.

P.S: DlangIDE is now able to open DUB based projects, build and run them, edit files.
Good sample project is dlangide/workspaces/tetris :)

January 31, 2015
On Wednesday, 28 January 2015 at 13:53:00 UTC, John Colvin wrote:
> On Wednesday, 28 January 2015 at 13:30:59 UTC, Vadim Lopatin wrote:
>> On Wednesday, 28 January 2015 at 13:18:11 UTC, John Colvin wrote:
>>> On Wednesday, 28 January 2015 at 10:57:57 UTC, Vadim Lopatin wrote:
>>>> On Wednesday, 28 January 2015 at 10:31:31 UTC, John Colvin wrote:
>>>>> $ ls -1 /Library/Fonts/ /System/Library/Fonts/
>>>>> /Library/Fonts/:
>>>>> Al Nile.ttc
>>>> ...
>>>>
>>>> Thank you!
>>>>
>>>> Submitted fix with some mac font paths hardcoded.
>>>> v0.4.22
>>>> Could you please try it?
>>>>
>>>> BTW, could you try on mac https://github.com/buggins/dlangide.git as well?
>>>> It's dlangui-based D language IDE I'm currently working on.
>>>
>>> tetris and helloworld now work. example1 fails to build:
>>> src/example1.d(69): Error: undefined identifier setTimer
>>> src/example1.d(75): Error: undefined identifier cancelTimer
>>
>> Checked on latest version from git - example1 works for me.
>> Did you try to pull recent changes from git?
>
> All working for me now.
>
> A few points:
> As I mentioned about dlangide, the font scaling is nasty.
> The Window menu name overflows and is clipped.
> Are the draggable dividers in the Buttons tab supposed to be able to move? They don't seem to do anything.

I've added Gamma setting for font rendering. Now text looks acceptable.
In DlangIDE v0.1.4, I'm using
        FontManager.fontGamma = 0.8;
	FontManager.hintingMode = HintingMode.AutoHint;
(as well, for Windows versions, USE_FREETYPE is set - but it falls back to win32 font rendering if no freetype.dll found)
As for me, now font rendering look good with such settings.
Latest features implemented:
* Text cursor blinking
* Update of actions state in UI (now working better for toolbars, has some bugs for menu items, will be fixed soon)

Now DlangIDE allows to open DUB project, edit it, build and run, clean, rebuild, upgrade dependencies (using DUB).

I hope it will become usable in a few weeks.
February 02, 2015
Hi Vadim,

When I follow the Build and Run Demo App using DUB I get the following...

C:\D\dmd2\src>git clone https://github.com/buggins/dlangui.git
Cloning into 'dlangui'...
remote: Counting objects: 13291, done.
remote: Compressing objects: 100% (186/186), done.
remote: Total 13291 (delta 113), reused 0 (delta 0)
Receiving objects: 100% (13291/13291), 8.78 MiB | 538.00 KiB/s, done.
Resolving deltas: 100% (10144/10144), done.

C:\D\dmd2\src>cd dlangui

C:\D\dmd2\src\dlangui>dub run dlangui:example1 --build=release
Building package dlangui:example1 in C:\D\dmd2\src\dlangui\examples\example1\
Fetching derelict-util 1.9.1 (getting selected version)...
Placing derelict-util 1.9.1 to C:\Users\mikej\AppData\Roaming\dub\packages\...
Building dlib 0.4.1 configuration "library", build type release.
Running dmd...
Building derelict-util 1.9.1 configuration "library", build type release.
Running dmd...
Building derelict-ft 1.0.1 configuration "library", build type release.
Running dmd...
Building derelict-sdl2 1.9.1 configuration "library", build type release.
Running dmd...
Building derelict-gl3 1.0.12 configuration "library", build type release.
Running dmd...
Building dlangui:dlanguilib 0.4.35+commit.4.gf902ceb configuration "library", build type release.
Running dmd...
src\dlangui\graphics\resources.d(152): Error: file "btn_background.xml\x0d" cannot be found or not in a path specified with -J
src\dlangui\graphics\resources.d(153): Error: data.length cannot be evaluated at compile time
src\dlangui\graphics\resources.d(166): Error: template instance dlangui.graphics.resources.embedResource!"res/btn_background.xml\x0d" error instantiating src\dlangui\graphics\resources.d(173):

Is the setup missing extra directories?

Regards, -=mike=-
February 02, 2015
On Monday, 2 February 2015 at 11:18:30 UTC, Mike James wrote:
> Hi Vadim,
>
> When I follow the Build and Run Demo App using DUB I get the following...
>
> C:\D\dmd2\src>git clone https://github.com/buggins/dlangui.git
> Cloning into 'dlangui'...
> remote: Counting objects: 13291, done.
> remote: Compressing objects: 100% (186/186), done.
> remote: Total 13291 (delta 113), reused 0 (delta 0)
> Receiving objects: 100% (13291/13291), 8.78 MiB | 538.00 KiB/s, done.
> Resolving deltas: 100% (10144/10144), done.
>
> C:\D\dmd2\src>cd dlangui
>
> C:\D\dmd2\src\dlangui>dub run dlangui:example1 --build=release
> Building package dlangui:example1 in C:\D\dmd2\src\dlangui\examples\example1\
> Fetching derelict-util 1.9.1 (getting selected version)...
> Placing derelict-util 1.9.1 to C:\Users\mikej\AppData\Roaming\dub\packages\...
> Building dlib 0.4.1 configuration "library", build type release.
> Running dmd...
> Building derelict-util 1.9.1 configuration "library", build type release.
> Running dmd...
> Building derelict-ft 1.0.1 configuration "library", build type release.
> Running dmd...
> Building derelict-sdl2 1.9.1 configuration "library", build type release.
> Running dmd...
> Building derelict-gl3 1.0.12 configuration "library", build type release.
> Running dmd...
> Building dlangui:dlanguilib 0.4.35+commit.4.gf902ceb configuration "library", build type release.
> Running dmd...
> src\dlangui\graphics\resources.d(152): Error: file "btn_background.xml\x0d" cannot be found or not in a path specified with -J
> src\dlangui\graphics\resources.d(153): Error: data.length cannot be evaluated at compile time
> src\dlangui\graphics\resources.d(166): Error: template instance dlangui.graphics.resources.embedResource!"res/btn_background.xml\x0d" error instantiating src\dlangui\graphics\resources.d(173):
>
> Is the setup missing extra directories?
>
> Regards, -=mike=-

Hello,

Works for me - I cannot reproduce the problem.
It looks like -J parameters are not passed properly to compiler.
For embedding of resources into executable, -J include paths must be set for directories views, views/res, views/res/mdpi, views/res/i18.
When I'm running dub with -v switch, I see
-Jviews -Jviews/res -Jviews/res/mdpi -Jviews/res/i18 in DMD command line

Probably, it depends on DUB version.
My one is 0.9.22 Sep 16 2014 (downloaded from code.dlang.org/downloads)

Best regards,
     Vadim
February 24, 2015
On Tuesday, 20 May 2014 at 18:13:36 UTC, Vadim Lopatin wrote:
> Hello!
>
> I would like to announce my project, DlangUI library - cross-platform GUI for D.
> https://github.com/buggins/dlangui
> License: Boost License 1.0
>
> Native library written in D (not a wrapper to other GUI library) - easy to extend.
> Best regards,
>      Vadim  <coolreader.org@gmail.com>
> 	

WARNING! Breaking change in dlangui!

Pull request to use package.d instead of dlangui/all.d is integrated.
If you are using dlangui in your project, please change

    import dlangui.all;

to

    import dlangui;

in order to fix build.
February 24, 2015
On Thursday, 29 January 2015 at 15:29:15 UTC, Vadim Lopatin wrote:
> On Thursday, 29 January 2015 at 14:13:22 UTC, John Colvin wrote:
>> On Wednesday, 28 January 2015 at 14:21:36 UTC, Vadim Lopatin wrote:
>>> On Wednesday, 28 January 2015 at 13:37:34 UTC, John Colvin wrote:
>>>> On Wednesday, 28 January 2015 at 10:57:57 UTC, Vadim Lopatin wrote:
>>>>> BTW, could you try on mac https://github.com/buggins/dlangide.git as well?
>>>>> It's dlangui-based D language IDE I'm currently working on.
>>>>
>>>> That works OK.
>>>>
>>>> The text is all horrible looking. This is probably due to (lack of) scaling support for high-res screens (retina).
>>>
>>> Is graphics scaled too? If so, it's due to scaling.
>>> Otherwise possible it's due to bad implementation of subpixel antialiasing (aka ClearType).
>>> I've submitted fix to disable subpixel antialiasing.
>>
>> An example of what I see (with up-to-date git HEAD)
>>
>> https://www.dropbox.com/s/49n9m0b9uutzaa8/Screenshot%202015-01-29%2014.11.57.png?dl=0
>
> I see no additional blur comparing with other platforms.
> It's bad font rendering. Trying to improve.
>
> P.S: DlangIDE is now able to open DUB based projects, build and run them, edit files.
> Good sample project is dlangide/workspaces/tetris :)

From what I can tell, it seems to be that it's using X11 for rendering, which I think doesn't support high DPI properly when using a Retina screen, making it appear very blurry.
February 24, 2015
On Tuesday, 24 February 2015 at 16:46:12 UTC, Kapps wrote:
> On Thursday, 29 January 2015 at 15:29:15 UTC, Vadim Lopatin wrote:
>> On Thursday, 29 January 2015 at 14:13:22 UTC, John Colvin wrote:
>>> On Wednesday, 28 January 2015 at 14:21:36 UTC, Vadim Lopatin wrote:
>>>
>>> An example of what I see (with up-to-date git HEAD)
>>>
>>> https://www.dropbox.com/s/49n9m0b9uutzaa8/Screenshot%202015-01-29%2014.11.57.png?dl=0
>>
>> I see no additional blur comparing with other platforms.
>> It's bad font rendering. Trying to improve.
>>
>> P.S: DlangIDE is now able to open DUB based projects, build and run them, edit files.
>> Good sample project is dlangide/workspaces/tetris :)
>
> From what I can tell, it seems to be that it's using X11 for rendering, which I think doesn't support high DPI properly when using a Retina screen, making it appear very blurry.

XQuartz Bug Report: http://xquartz.macosforge.org/trac/ticket/661

I don't know what makes dlangui (dlangide?) use X11 though.
February 24, 2015
On Tuesday, 24 February 2015 at 08:01:41 UTC, Vadim Lopatin wrote:
> On Tuesday, 20 May 2014 at 18:13:36 UTC, Vadim Lopatin wrote:
>> Hello!
>>
>> I would like to announce my project, DlangUI library - cross-platform GUI for D.
>> https://github.com/buggins/dlangui
>> License: Boost License 1.0
>>
>> Native library written in D (not a wrapper to other GUI library) - easy to extend.
>> Best regards,
>>     Vadim  <coolreader.org@gmail.com>
>> 	
>
> WARNING! Breaking change in dlangui!
>
> Pull request to use package.d instead of dlangui/all.d is integrated.
> If you are using dlangui in your project, please change
>
>     import dlangui.all;
>
> to
>
>     import dlangui;
>
> in order to fix build.

This seems to have broken building DlangIDE for me. After updating from Git, doing `dub build` prints the following error:

src/dlangide.d(3): Error: module dlangui is in file 'dlangui.d' which cannot be read.
February 25, 2015
On Tuesday, 24 February 2015 at 18:24:51 UTC, Meta wrote:
> On Tuesday, 24 February 2015 at 08:01:41 UTC, Vadim Lopatin wrote:
>> On Tuesday, 20 May 2014 at 18:13:36 UTC, Vadim Lopatin wrote:
>>> Hello!
>>>
>>> I would like to announce my project, DlangUI library - cross-platform GUI for D.
>>> https://github.com/buggins/dlangui
>>> License: Boost License 1.0
>>>
>>> Native library written in D (not a wrapper to other GUI library) - easy to extend.
>>> Best regards,
>>>    Vadim  <coolreader.org@gmail.com>
>>> 	
>>
>> WARNING! Breaking change in dlangui!
>>
>> Pull request to use package.d instead of dlangui/all.d is integrated.
>> If you are using dlangui in your project, please change
>>
>>    import dlangui.all;
>>
>> to
>>
>>    import dlangui;
>>
>> in order to fix build.
>
> This seems to have broken building DlangIDE for me. After updating from Git, doing `dub build` prints the following error:
>
> src/dlangide.d(3): Error: module dlangui is in file 'dlangui.d' which cannot be read.


Upgrade dependencies:

dub upgrade --force-remove


February 25, 2015
On Tuesday, 24 February 2015 at 17:16:25 UTC, Kapps wrote:
>
> XQuartz Bug Report: http://xquartz.macosforge.org/trac/ticket/661
>
> I don't know what makes dlangui (dlangide?) use X11 though.

DlangUI just uses libsdl.

The only possible reason of blurring is SDL2 implementation on MAC.