December 28, 2014
On Sunday, 28 December 2014 at 06:13:48 UTC, Vadim Lopatin wrote:
> On Sunday, 28 December 2014 at 02:31:56 UTC, Jack wrote:
>> Sorry it took so long, installing dub-git took so long with my net speed.
>> Runnung dub run dlangui:tetris got me this error code:
>> http://dpaste.dzfl.pl/0cf2b2476a85
>> I think the hello world mentioned in the error is the one inside the dlangui directory.
>> My project is only the one made by dub init <package-name>.
>> Thank you for taking the time to help me.
>
> Could you post error log?
> It's either in stderr output or in file ui.log
>
>
>
> What is your OS?
>
> There is known problem with fonts.
> For linux, font paths are hardcoded (there is a ticket to implement FontConfig based font list).
> For Mac, it will not find
>
> Temporary workaround: register some fonts manually:
> // get free type font manager access
> auto ft = cast(FreeTypeFontManager)FontManager.instance;
> // register some fonts like
> ft.registerFont("/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf", FontFamily.SansSerif, "DejaVu", false, FontWeight.Normal);

I'm using Arch Linux x64, as for the linux font paths problem, where should I put it? I've never really begun using dlangui, I've just been trying to build an empty project with it as its dependency.

And I don't really know how to access the stderr nor did I find any ui.log
Though this is the result of "dub run dlangui:tetris -v"
http://dpaste.dzfl.pl/0e144a999c3d
December 28, 2014
Vadim, could you check your email. I Have do not related with DLAGGUI question.
December 28, 2014
On Sunday, 28 December 2014 at 06:39:24 UTC, Jack wrote:
>
> On Sunday, 28 December 2014 at 06:13:48 UTC, Vadim Lopatin wrote:
>> On Sunday, 28 December 2014 at 02:31:56 UTC, Jack wrote:
>>> Sorry it took so long, installing dub-git took so long with my net speed.
>>> Runnung dub run dlangui:tetris got me this error code:
>>> http://dpaste.dzfl.pl/0cf2b2476a85
>>> I think the hello world mentioned in the error is the one inside the dlangui directory.
>>> My project is only the one made by dub init <package-name>.
>>> Thank you for taking the time to help me.
>>
>> Could you post error log?
>> It's either in stderr output or in file ui.log
>>
>>
>>
>> What is your OS?
>>
>> There is known problem with fonts.
>> For linux, font paths are hardcoded (there is a ticket to implement FontConfig based font list).
>> For Mac, it will not find
>>
>> Temporary workaround: register some fonts manually:
>> // get free type font manager access
>> auto ft = cast(FreeTypeFontManager)FontManager.instance;
>> // register some fonts like
>> ft.registerFont("/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf", FontFamily.SansSerif, "DejaVu", false, FontWeight.Normal);
>
> I'm using Arch Linux x64, as for the linux font paths problem, where should I put it? I7've never really begun using dlangui, I've just been trying to build an empty project with it as its dependency.
>
> And I don't really know how to access the stderr nor did I find any ui.log
> Though this is the result of "dub run dlangui:tetris -v"
> http://dpaste.dzfl.pl/0e144a999c3d

It looks like DUB suppresses stderr output.
You can try
    dub build dlangui:tetris --build=debug
then run it manually
    examples/tetris/bin/tetris
You will see log messages on console

As well, you can redirect them to file:
    examples/tetris/bin/tetris 2> ui.log
Then check ui.log


I've tested under Ubuntu/x64 only.
Probably, there is no DejaVuSans.ttf in
/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
or it's located in different location under Arch.

If you provide paths to some .ttf fonts under Arch, I can prepare quick fix with such hardcoded paths.

December 28, 2014
On Friday, 26 December 2014 at 12:33:04 UTC, Vadim Lopatin wrote:
> Hello!
>
> DlangUI project is alive and under active development.
>
> https://github.com/buggins/dlangui
>
> Recent changes:
> - new controls: ScrollWidget, TreeView, ComboBox, ...
> - new dialogs: FileOpenDialog, MessageBox
> - a lot of bugfixes
> - performance improvements in software renderer
> - killer app: new example - Tetris game :)
>
> Try Demos:
>     # download sources
>     git clone https://github.com/buggins/dlangui.git
>     cd dlangui
>     # example 1 - demo for most of widgets
>     dub run dlangui:example1 --build=release
>     # tetris - demo for game development
>     dub run dlangui:tetris --build=release
>
> DlangUI is cross-platform GUI library written in D.
> Main features:
> - cross platform: uses SDL for linux/macos, Win32 API or SDL for Windows
> - hardware acceleration: uses OpenGL for drawing when built with version USE_OPENGL
> - easy to extend: since it's native D library, you can add your own widgets and extend functionality
> - Unicode and internationalization support
> - easy to customize UI - look and feel can be changed using themes and styles
> - API is a bit similar to Android - two phase layout, styles
>
> Screenshots (a bit outdated): http://buggins.github.io/dlangui/screenshots.html
>
> See project page for details.
>
> I would like to get any feedback.
> Will be glad to see advises, bug reports, feature requests.
>
> Best regards,
>      Vadim


Win32  package is useful for WindowsServiceInD,thank you.

Frank
December 28, 2014
On Sunday, 28 December 2014 at 09:32:24 UTC, Vadim Lopatin wrote:
> On Sunday, 28 December 2014 at 06:39:24 UTC, Jack wrote:
>>
>> On Sunday, 28 December 2014 at 06:13:48 UTC, Vadim Lopatin wrote:
>>> On Sunday, 28 December 2014 at 02:31:56 UTC, Jack wrote:
>>>> Sorry it took so long, installing dub-git took so long with my net speed.
>>>> Runnung dub run dlangui:tetris got me this error code:
>>>> http://dpaste.dzfl.pl/0cf2b2476a85
>>>> I think the hello world mentioned in the error is the one inside the dlangui directory.
>>>> My project is only the one made by dub init <package-name>.
>>>> Thank you for taking the time to help me.
>>>
>>> Could you post error log?
>>> It's either in stderr output or in file ui.log
>>>
>>>
>>>
>>> What is your OS?
>>>
>>> There is known problem with fonts.
>>> For linux, font paths are hardcoded (there is a ticket to implement FontConfig based font list).
>>> For Mac, it will not find
>>>
>>> Temporary workaround: register some fonts manually:
>>> // get free type font manager access
>>> auto ft = cast(FreeTypeFontManager)FontManager.instance;
>>> // register some fonts like
>>> ft.registerFont("/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf", FontFamily.SansSerif, "DejaVu", false, FontWeight.Normal);
>>
>> I'm using Arch Linux x64, as for the linux font paths problem, where should I put it? I7've never really begun using dlangui, I've just been trying to build an empty project with it as its dependency.
>>
>> And I don't really know how to access the stderr nor did I find any ui.log
>> Though this is the result of "dub run dlangui:tetris -v"
>> http://dpaste.dzfl.pl/0e144a999c3d
>
> It looks like DUB suppresses stderr output.
> You can try
>     dub build dlangui:tetris --build=debug
> then run it manually
>     examples/tetris/bin/tetris
> You will see log messages on console
>
> As well, you can redirect them to file:
>     examples/tetris/bin/tetris 2> ui.log
> Then check ui.log
>
>
> I've tested under Ubuntu/x64 only.
> Probably, there is no DejaVuSans.ttf in
> /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
> or it's located in different location under Arch.
>
> If you provide paths to some .ttf fonts under Arch, I can prepare quick fix with such hardcoded paths.

The path to fonts in Archlinux is:
/usr/share/fonts/TTF/DejaVuSans.ttf

and running the example lead to a seg fault.
I ran the gdb(with ddd) on it and it points to
line 93 of /dlangui-0.1.15/src/widgets/controls.d


December 28, 2014
On Sun, 2014-12-28 at 09:32 +0000, Vadim Lopatin via Digitalmars-d-announce wrote:
> […]
> I've tested under Ubuntu/x64 only.
> Probably, there is no DejaVuSans.ttf in
> /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
> or it's located in different location under
> Arch.
> 
> If you provide paths to some .ttf fonts under Arch, I can prepare quick fix with such hardcoded paths.

For Fedora Rawhide the path to the DejaVu typeface is /usr/share/fonts/dejavu/ with there being a multitude of TTF font files in that directory.

Ubuntu being a Debian system, the Debian files are in /usr/share/fonts/truetype/dejavu

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

December 28, 2014
On Sunday, 28 December 2014 at 17:29:15 UTC, Russel Winder via Digitalmars-d-announce wrote:
>
> On Sun, 2014-12-28 at 09:32 +0000, Vadim Lopatin via Digitalmars-d-announce wrote:
>> […]
>> I've tested under Ubuntu/x64 only.
>> Probably, there is no DejaVuSans.ttf in
>> /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
>> or it's located in different location under Arch.
>> 
>> If you provide paths to some .ttf fonts under Arch, I can prepare quick fix with such hardcoded paths.
>
> For Fedora Rawhide the path to the DejaVu typeface is
> /usr/share/fonts/dejavu/ with there being a multitude of TTF font
> files in that directory.
>
> Ubuntu being a Debian system, the Debian files are in
> /usr/share/fonts/truetype/dejavu

Added two more font paths (temporary solution, will be replaced with libfontconfig based solution later).

/usr/share/fonts/TTF/DejaVuSans.ttf
/usr/share/fonts/dejavu/DejaVuSans.ttf
December 28, 2014
On Sunday, 28 December 2014 at 15:29:02 UTC, Jack wrote:
> On Sunday, 28 December 2014 at 09:32:24 UTC, Vadim Lopatin wrote:
>> On Sunday, 28 December 2014 at 06:39:24 UTC, Jack wrote:
>> If you provide paths to some .ttf fonts under Arch, I can prepare quick fix with such hardcoded paths.
>
> The path to fonts in Archlinux is:
> /usr/share/fonts/TTF/DejaVuSans.ttf
>
> and running the example lead to a seg fault.
> I ran the gdb(with ddd) on it and it points to
> line 93 of /dlangui-0.1.15/src/widgets/controls.d

It crashes on null font reference - no fonts in font manager.
Try v0.1.16 - it should work on your system.

December 28, 2014
On Sunday, 28 December 2014 at 14:31:57 UTC, FrankLike wrote:
> On Friday, 26 December 2014 at 12:33:04 UTC, Vadim Lopatin wrote:
>> Hello!
>>
>> DlangUI project is alive and under active development.
...
>
> Win32  package is useful for WindowsServiceInD,thank you.
>
> Frank

So you are going to use dlangui in win app?
Please let me know if you find any issues (better, file issue on github).
If some necessary widgets are missing, I can add them.
December 28, 2014
On Fri, 26 Dec 2014 12:33:03 +0000
Vadim Lopatin via Digitalmars-d-announce
<digitalmars-d-announce@puremagic.com> wrote:

> Hello!
> 
> DlangUI project is alive and under active development.
> 
> https://github.com/buggins/dlangui

ah, i really love this project! it's stable as a rock: every time i tried it, it crashing with "exception while loading image from file". it's not working, but at least it's not working every time i check it. ;-)