January 28, 2015 Re: DlangUI | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Colvin | On Wednesday, 28 January 2015 at 10:28:09 UTC, John Colvin wrote: > On Wednesday, 28 January 2015 at 10:13:12 UTC, Vadim Lopatin wrote: >> On Wednesday, 28 January 2015 at 10:01:44 UTC, John Colvin wrote: >>> On Wednesday, 28 January 2015 at 04:11:20 UTC, Vadim Lopatin wrote: >>>> On Tuesday, 27 January 2015 at 19:37:44 UTC, Gan wrote: >>>>> On Saturday, 14 June 2014 at 19:40:58 UTC, Jim Hewes wrote: >>>>>> Very nice, thanks. I'm looking forward to trying it out when I can find the time. I'm not a big fan of bindings/wrappers. >>>>>> >>>>>> Jim >>>>> >>>>> This is looks fantastic. I tried the demo but I get an error: >>>>> SDL_GL_CreateContext failed: Failed creating OpenGL context >>>>> >>>>> Running Mac OS 10.10.2 on 2011 Macbook Pro >>>> >>>> Never tried it on mac. >>>> I believe, if OpenGL context cannot be created, DlangUI SDL backend should switch to bare SDL (sw renderer). >>>> I would rather expect that app crashes on missing fonts. >>>> Linux (and mac) font paths are hardcoded. Where are .ttf files located on macos? Fast and dirty fix is possible - add paths for a few mac fonts. >>>> Could you please share startup logs? >>>> >>>> As well, you can try to build w/o OpenGL - clone repository and remove USE_OPENGL version from dub.json >>> >>> All the projects in examples/ crash on OS X in functions relating to text AFAICS. >>> >>> Font locations on OS X: http://support.apple.com/en-gb/HT201722 >> >> Could you please share file list of /Library/Fonts/ and /System/Library/Fonts/ ? Apologies for the previous mess, this is what I have on 10.10: $ ls -1 /Library/Fonts/ /System/Library/Fonts/ /Library/Fonts/: Al Nile.ttc Al Tarikh.ttc AlBayan.ttc AmericanTypewriter.ttc Andale Mono.ttf Apple Chancery.ttf AppleGothic.ttf AppleMyungjo.ttf AppleSDGothicNeo-ExtraBold.otf AppleSDGothicNeo-Heavy.otf AppleSDGothicNeo-Light.otf AppleSDGothicNeo-Medium.otf AppleSDGothicNeo-SemiBold.otf AppleSDGothicNeo-Thin.otf AppleSDGothicNeo-UltraLight.otf Arial Black.ttf Arial Bold Italic.ttf Arial Bold.ttf Arial Italic.ttf Arial Narrow Bold Italic.ttf Arial Narrow Bold.ttf Arial Narrow Italic.ttf Arial Narrow.ttf Arial Rounded Bold.ttf Arial Unicode.ttf Arial.ttf Athelas.ttc Ayuthaya.ttf Baghdad.ttc Bangla MN.ttc Bangla Sangam MN.ttc Baoli.ttc Baskerville.ttc Beirut.ttc BigCaslon.ttf Bodoni 72 OS.ttc Bodoni 72 Smallcaps Book.ttf Bodoni 72.ttc Bodoni Ornaments.ttf Bradley Hand Bold.ttf Brush Script.ttf Chalkboard.ttc ChalkboardSE.ttc Chalkduster.ttf Charter.ttc Cochin.ttc Comic Sans MS Bold.ttf Comic Sans MS.ttf Copperplate.ttc Corsiva.ttc Courier New Bold Italic.ttf Courier New Bold.ttf Courier New Italic.ttf Courier New.ttf DIN Alternate Bold.ttf DIN Condensed Bold.ttf Damascus.ttc DecoTypeNaskh.ttc Devanagari Sangam MN.ttc DevanagariMT.ttc Didot.ttc Diwan Kufi.ttc Diwan Thuluth.ttf EuphemiaCAS.ttc Farah.ttc Farisi.ttf Futura.ttc Georgia Bold Italic.ttf Georgia Bold.ttf Georgia Italic.ttf Georgia.ttf GillSans.ttc Gujarati Sangam MN.ttc GujaratiMT.ttf GujaratiMTBold.ttf Gungseouche.ttf Gurmukhi MN.ttc Gurmukhi Sangam MN.ttc Gurmukhi.ttf Hannotate.ttc Hanzipen.ttc HeadlineA.ttf Herculanum.ttf Hiragino Sans GB W3.otf Hiragino Sans GB W6.otf Hoefler Text Ornaments.ttf Hoefler Text.ttc ITFDevanagari.ttc Impact.ttf InaiMathi.ttf Iowan Old Style.ttc Kailasa.ttf Kaiti.ttc Kannada MN.ttc Kannada Sangam MN.ttc Kefa.ttc Khmer MN.ttc Khmer Sangam MN.ttf Kokonor.ttf Krungthep.ttf KufiStandardGK.ttc Lantinghei.ttc Lao MN.ttc Lao Sangam MN.ttf Libian.ttc Luminari.ttf Malayalam MN.ttc Malayalam Sangam MN.ttc Marion.ttc Microsoft Sans Serif.ttf Mishafi Gold.ttf Mishafi.ttf MshtakanBold.ttf MshtakanBoldOblique.ttf MshtakanOblique.ttf MshtakanRegular.ttf Muna.ttc Myanmar MN.ttc Myanmar Sangam MN.ttf NISC18030.ttf Nadeem.ttc NanumGothic.ttc NanumMyeongjo.ttc NanumScript.ttc NewPeninimMT.ttc Oriya MN.ttc Oriya Sangam MN.ttc Osaka.ttf OsakaMono.ttf PCmyoungjo.ttf PTMono.ttc PTSans.ttc PTSerif.ttc PTSerifCaption.ttc Papyrus.ttc Phosphate.ttc Pilgiche.ttf PlantagenetCherokee.ttf Raanana.ttc STIXGeneral.otf STIXGeneralBol.otf STIXGeneralBolIta.otf STIXGeneralItalic.otf STIXIntDBol.otf STIXIntDReg.otf STIXIntSmBol.otf STIXIntSmReg.otf STIXIntUpBol.otf STIXIntUpDBol.otf STIXIntUpDReg.otf STIXIntUpReg.otf STIXIntUpSmBol.otf STIXIntUpSmReg.otf STIXNonUni.otf STIXNonUniBol.otf STIXNonUniBolIta.otf STIXNonUniIta.otf STIXSizFiveSymReg.otf STIXSizFourSymBol.otf STIXSizFourSymReg.otf STIXSizOneSymBol.otf STIXSizOneSymReg.otf STIXSizThreeSymBol.otf STIXSizThreeSymReg.otf STIXSizTwoSymBol.otf STIXSizTwoSymReg.otf STIXVar.otf STIXVarBol.otf Sana.ttc Sathu.ttf Savoye LET.ttc Seravek.ttc Shree714.ttc SignPainter.otf Silom.ttf Sinhala MN.ttc Sinhala Sangam MN.ttc Skia.ttf SnellRoundhand.ttc Songti.ttc SukhumvitSet.ttc SuperClarendon.ttc Tahoma Bold.ttf Tahoma.ttf Tamil MN.ttc Tamil Sangam MN.ttc Telugu MN.ttc Telugu Sangam MN.ttc Times New Roman Bold Italic.ttf Times New Roman Bold.ttf Times New Roman Italic.ttf Times New Roman.ttf Trattatello.ttf Trebuchet MS Bold Italic.ttf Trebuchet MS Bold.ttf Trebuchet MS Italic.ttf Trebuchet MS.ttf Verdana Bold Italic.ttf Verdana Bold.ttf Verdana Italic.ttf Verdana.ttf Waseem.ttc WawaSC-Regular.otf WawaTC-Regular.otf Webdings.ttf WeibeiSC-Bold.otf WeibeiTC-Bold.otf Wingdings 2.ttf Wingdings 3.ttf Wingdings.ttf Xingkai.ttc Yu Gothic Bold.otf Yu Gothic Medium.otf Yu Mincho Demibold.otf Yu Mincho Medium.otf Yuanti.ttc YuppySC-Regular.otf YuppyTC-Regular.otf Zapfino.ttf encodings.dir fonts.dir fonts.list fonts.scale 儷宋 Pro.ttf 儷黑 Pro.ttf 华文仿宋.ttf 华文细黑.ttf 华文黑体.ttf ヒラギノ明朝 Pro W3.otf ヒラギノ明朝 Pro W6.otf ヒラギノ角ゴ Pro W3.otf ヒラギノ丸ゴ Pro W4.otf ヒラギノ角ゴ Pro W6.otf ヒラギノ丸ゴ ProN W4.otf ヒラギノ角ゴ Std W8.otf ヒラギノ角ゴ StdN W8.otf /System/Library/Fonts/: Apple Braille Outline 6 Dot.ttf Apple Braille Outline 8 Dot.ttf Apple Braille Pinpoint 6 Dot.ttf Apple Braille Pinpoint 8 Dot.ttf Apple Braille.ttf Apple Color Emoji.ttf Apple Symbols.ttc AppleSDGothicNeo-Bold.otf AppleSDGothicNeo-Regular.otf AquaKana.ttc ArialHB.ttc Avenir Next Condensed.ttc Avenir Next.ttc Avenir.ttc Courier.dfont GeezaPro.ttc Geneva.dfont HelveLTMM Helvetica LT MM Helvetica.dfont HelveticaNeue.dfont HelveticaNeueDeskInterface.ttc HiraKakuInterface-W1.otf HiraKakuInterface-W2.otf Keyboard.ttf Kohinoor.ttc LastResort.ttf LucidaGrande.ttc MarkerFelt.ttc Menlo.ttc Monaco.dfont Noteworthy.ttc Optima.ttc Palatino.ttc STHeiti Light.ttc STHeiti Medium.ttc STHeiti Thin.ttc STHeiti UltraLight.ttc Symbol.ttf Thonburi.ttc Times LT MM Times.dfont TimesLTMM ZapfDingbats.ttf encodings.dir fonts.dir fonts.list fonts.scale ヒラギノ明朝 ProN W3.otf ヒラギノ明朝 ProN W6.otf ヒラギノ角ゴ ProN W3.otf ヒラギノ角ゴ ProN W6.otf |
January 28, 2015 Re: DlangUI | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Colvin | 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. |
January 28, 2015 Re: DlangUI | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | 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
|
January 28, 2015 Re: DlangUI | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Colvin | 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?
|
January 28, 2015 Re: DlangUI | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | 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).
The main menu's open ok, but a second click to close them does nothing. Clicking elsewhere does close them though.
Not using the native OS X menu system leads to a rather grating experience. You'll get a similar story from Ubuntu Unity users.
|
January 28, 2015 Re: DlangUI | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | 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.
|
January 28, 2015 Re: DlangUI | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Colvin | 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. > The main menu's open ok, but a second click to close them does nothing. Clicking elsewhere does close them though. > > Not using the native OS X menu system leads to a rather grating experience. You'll get a similar story from Ubuntu Unity users. It's known problem. But it requires some work to update system menu. I don't have mac to do it anyway. Probably, someone will implement it later. |
January 28, 2015 Re: DlangUI | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Colvin | 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.
Resizers in example1 are just for testing of mouse cursor change - not fully implemented.
You can see working resizers in dlangide so far.
|
January 28, 2015 Re: DlangUI | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin Attachments: | On Wed, 28 Jan 2015 09:18:54 +0000, Vadim Lopatin wrote:
>> P.S. I noticed that it *almost* builds with gdc, but fails on freetype. Have you been attempting to target gdc at all for those performance gains?
> It looks like derelict-ft issue.
> I've submitted issue #3 to derelict-ft on GitHub.
> gdc doesn't support @nogc attribute
it already does, it's just not publicly released yet, as Johannes wants to fix some ARM-related bugs and Iain wants to prepare some proper release statements. gdc is 2.066.1 now, with some features backported from 2.067. so i don't think that there is any sense in supporting 2.065 branch.
|
January 29, 2015 Re: DlangUI | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | 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 |
Copyright © 1999-2021 by the D Language Foundation