[MacOS] LDCad on Wine (for Mac)-revisited - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html) +--- Forum: LDraw Editors and Viewers (https://forums.ldraw.org/forum-11.html) +--- Thread: [MacOS] LDCad on Wine (for Mac)-revisited (/thread-24548.html) |
LDCad on Wine (for Mac)-revisited - N. W. Perry - 2021-04-13 Following the original thread, I want to revisit this topic as I'm working on a how-to guide for using LDCad (and other LDraw utilities) under Wine. I would love to know what experiences some of you have had. Here's what I have successfully running:
I did have to manually place the fonts FreeSans and FreeMono into my drive_c\windows\Fonts folder for LDCad (as previously reported). I just did some tinkering to see if I could update anything, but to be honest any newer configuration than the one I have seems to break something. You cannot use XQuartz 2.7.11 because it results in ugly, chunky fonts, and the current XQuartz 2.8.0 just pain doesn't work at all. (I believe there is a fix in the works for 2.8.1, though.) I tried upgrading to Wine 5.0, but it results in a minor but annoying issue with LDCad, where the app window acts like it isn't in the front after desktop switching (even though it is). Sounds trivial, but desktop switching is such a big part of my workflow that it becomes quite irritating. So I reverted to 4.0.3, the previous stable release. (Installer packages aren't out yet for Wine 6.0.) I would very much like to know if anyone has had success with any newer configuration? Specifically, has anybody tried Catalina or Big Sur with Wine yet? Official Wine doesn't support them, but CrossOver (paid Wine) reputedly does. But then, I don't know if it has the same issues as newer versions of Wine—and if so, whether they're fixable. RE: LDCad on Wine (for Mac)-revisited - Manfred Kern - 2021-04-13 (2021-04-13, 4:53)N. W. Perry Wrote: Following the original thread, I want to revisit this topic as I'm working on a how-to guide for using LDCad (and other LDraw utilities) under Wine. I would love to know what experiences some of you have had. I don't want to disappoint you, but since MacOS 10.15 (Catalina) 32bit is no longer supported. So, Wine will not run (at least for 32 bit programs). So whatever you do, will either be temporary or will not work at all. What I found is https://github.com/Gcenx/WineskinServer. I do not know if this really helps. Currently, if you want an LDraw editor, the only ones running out of the box is LeoCad and Stud.io (to my knowledge). Bricksmith has problems with OpenGL on MacOS (Apple changed something under the hood). If you can compile the version from GitHub, I think it will work (at least on my MacOS - Big Sur). They fixed something. But this is not available as a binary from the bricksmith web page. Another choice is running a Windows version in a virtual box such as Parallels, VMWare or Virtualbox. I think a no cost option could be VirtualBox (which is free) and Windows. To my knowledge you can use an unregistered Windows 10 version (you will not be able to tweak the look of Windows). From a license perspective I do not know if this is legal, but technically it is working. Well to be honest, Virtualbox is not running on MacOS Big Sur either. The last option which comes into my mind is using BootCamp if you have enough disc space. Not very comfortable having to reboot only for using LDraw editors. It is really a sad state. I love Bricksmith because it offers more variety for flexible parts as LeoCad and Stud.io. RE: LDCad on Wine (for Mac)-revisited - N. W. Perry - 2021-04-13 (2021-04-13, 11:58)Manfred Kern Wrote: I don't want to disappoint you, but since MacOS 10.15 (Catalina) 32bit is no longer supported. So, Wine will not run (at least for 32 bit programs). So whatever you do, will either be temporary or will not work at all. Yes, that's the major known issue, and why I'd like to hear from anyone who may have tried it. But all reports are that CrossOver does solve the problem…and CrossOver is essentially Wine; it's just that this particular bit of code isn't officially supported in Wine, for reasons that are way over my head. And LDCad, at least, is 64-bit, so right now that's the major motivation for a lot of people who may want to try this. Quote:What I found is https://github.com/Gcenx/WineskinServer. I do not know if this really helps. What does it do, that Wine by itself doesn't? Quote:Currently, if you want an LDraw editor, the only ones running out of the box is LeoCad and Stud.io (to my knowledge). It is too bad, I agree. But LDCad works so well under Wine that I think it's fair to say this is still the best option by far. So we can at least get some kind of guide together for that process. The key component at this point is whether users really can't go beyond Mojave. If there is Wine or a Wine-like solution that works for the current OS, that's ideal. (Even if they just have to deal with that one quirk of LDCad under Wine 5 and up.) RE: LDCad on Wine (for Mac)-revisited - Manfred Kern - 2021-04-13 (2021-04-13, 12:56)N. W. Perry Wrote: Yes, that's the major known issue, and why I'd like to hear from anyone who may have tried it. But all reports are that CrossOver does solve the problem…and CrossOver is essentially Wine; it's just that this particular bit of code isn't officially supported in Wine, for reasons that are way over my head. And LDCad, at least, is 64-bit, so right now that's the major motivation for a lot of people who may want to try this. As for wineskin, I never used it. I was only surprised, that it should run on MacOS 11 (Big Sur). On Windows and Linux, LDCad is my favorite. I once had it run on an earlier version of MacOS with wine. But MacOS is continually steeling my apps (by removing 32 bit --> death of wine and some others), deprecating OpenGL and adding additional layers (death of bricksmith). And with the new M11 chip I think I will not buy a new Mac anymore. It is not sufficient to only have a good look. Continuity of apps is more important. RE: LDCad on Wine (for Mac)-revisited - N. W. Perry - 2021-04-13 (2021-04-13, 14:52)Manfred Kern Wrote: As for wineskin, I never used it. I was only surprised, that it should run on MacOS 11 (Big Sur). Well, if you do have a newer Mac setup than mine and would be willing to try out a few things, it would be most helpful. Even if you decide this is not the way to go for you, it would be instructive to know why. Or if you have other systems available and have decided to use those exclusively, that's fine as well. Of course it would be assumed that anyone using this guide will have already decided that it's worth giving Wine a try, or at least that it's their only possible option, so that question won't really be on the table. This is just an effort to fill in some of the documentation for new users on the LDraw web site, and I've offered to tackle it since it's something I'd love to have known sooner! RE: LDCad on Wine (for Mac)-revisited - Manfred Kern - 2021-04-14 (2021-04-13, 17:19)N. W. Perry Wrote: Well, if you do have a newer Mac setup than mine and would be willing to try out a few things, it would be most helpful. Even if you decide this is not the way to go for you, it would be instructive to know why. Well, the minute Apple dropped 32 bit support, wine didn't work anymore. So, I removed it. But now I gave it a new try. 1. Just for a test I installed wine 5.0 via brew. Installation worked 2. Downloaded the archive file of LDCad for Windows 3. Unarchive and cd to the LDCad folder 4. Ran wine64 LDCad64.exe --> LDCad starts. When it asks for LDraw-Directory enter Z:\<full path to LDraw directory> using backslashes 5. Fonts are missing, so needs to be grabbed from somewhere (e.g. a working windows installation). You need the verdana*.ttf fonts 6. Put those fonts into the $HOME/.wine/drive_c/windows/Fonts folder Restart wine64 LDCad64 and it is working. I loaded some of the models shipped with LDCad. They work, but it is kinda slow. Side remark about installing fonts: forget winetricks. This only works in a 32bit environment. Some System programs provided by wine , like regedit.exe don't work. They are 32bit. You may mess around with the main.gui file (located in LDCad/gui/default), but for me it is too complicated to match MacOS fonts into main.gui. Now it works. But it is a hack. I wonder when it will break again. Another side note: I am running MacOS11 (Big Sur) on a MacBook Air 2016 (Intel). RE: LDCad on Wine (for Mac)-revisited - N. W. Perry - 2021-04-14 (2021-04-14, 14:07)Manfred Kern Wrote: Well, the minute Apple dropped 32 bit support, wine didn't work anymore. So, I removed it. Thanks, that is very helpful! So we can at least say that Wine itself will run under Big Sur, but only 64-bit programs will work, confirming the rumors. For users who only really want to get LDCad working, that may be enough. (There seem to be a lot of Studio users on macOS who would like to be able to work in LDCad, for example.) If you (or anyone) have Mission Control enabled with multiple desktop spaces, could you try something else? 1. Open LDCad in a desktop space with no other windows or apps in it 2. Switch to another desktop (this one can have windows open, or not; it doesn't seem to matter) 3. Switch back to the LDCad space — Does the LDCad window appear to be the front window (even thought it's the only window)? —Without clicking the mouse/trackpad, does anything in the LDCad window respond to mouse-over? Menu highlights, part highlights, source window entries, etc.? —Without clicking the mouse/trackpad, does LDCad respond to any keyboard input? For example, ctrl-N for a new file? 4. Now click in the LDCad window, as if to make it active. —Does the window now respond normally to mouse-over or keyboard inputs? This is the issue I found with LDCad specifically, starting in Wine 5.0. The issue is not present in Wine 4.0.3. To me, it's a deal breaker, but other users might find it acceptable and thus be okay with current versions of Wine. (But I haven't tested other LDraw apps in 5.0.) RE: LDCad on Wine (for Mac)-revisited - Roland Melkert - 2021-04-14 (2021-04-14, 14:07)Manfred Kern Wrote: They are 32bit. You may mess around with the main.gui file (located in LDCad/gui/default), but for me it is too complicated to match MacOS fonts into main.gui. Currently it will search for: DejaVuSans FreeSans verdana and when mono space is needed: DejaVuSansMono FreeMono cour FreeSans LDCad will use the first (recursively) found one, so you can just add the apple ones to the list (filename without the .ttf ) If anyone has the filenames of suitable fonts nativily available on mac I could add them to the default gui template. Or you could just grab the free /open source font 'freesans' and 'freemono' font files from the net and put them in the .../gui/default folder RE: LDCad on Wine (for Mac)-revisited - N. W. Perry - 2021-04-14 (2021-04-14, 18:05)Roland Melkert Wrote: Currently it will search for: Any of these should be suitable as-is. I had the free ones installed, but I just now downloaded DejaVu, and now they load into the GUI just fine. (I just copied the two .ttf files for DejaVuSans and DejaVuSansMono, not the entire directory.) RE: LDCad on Wine (for Mac)-revisited - Manfred Kern - 2021-04-15 (2021-04-14, 16:23)N. W. Perry Wrote: Thanks, that is very helpful! So we can at least say that Wine itself will run under Big Sur, but only 64-bit programs will work, confirming the rumors. For users who only really want to get LDCad working, that may be enough. (There seem to be a lot of Studio users on macOS who would like to be able to work in LDCad, for example.) I can confirm, that you must first select LDCad in order that mouse over , ... is working. When you select the app it will work. But in my opinion, this is natural to MacOS, since LDCad is not an app bundle. If you e.g. develop a program with wxWidgets (a cross platform C++ Gui framework) you have the same result. After compiling and launching the program it will not have the focus. As soon as you create an app bundle, it will behave as a "normal" MacOS app. Also Cmd-Q does not work for closing the app. You need to close the window. RE: LDCad on Wine (for Mac)-revisited - N. W. Perry - 2021-04-15 (2021-04-15, 19:15)Manfred Kern Wrote: I can confirm, that you must first select LDCad in order that mouse over , ... is working. When you select the app it will work. Interesting; so you'd say the way it worked under 4.0.3 was actually the "bug", and now it behaves "correctly"? (In which case I'll take the bug, but that's another matter!) What happens if you open some other windows in the same space as LDCad? Say another app, or a Finder window? In 4.0.3, whichever window is at the front when I switch spaces will be at the front when I switch back. I'm curious whether the LDCad window is actually being moved to the back, or just acting like it? Incidentally, the LDCad window is actually a program window in "wine64-preloader", which is an executable but not an app bundle (app bundles always have an executable file somewhere inside them). So, I also wonder if any program running in a preloader window would have the same behavior? On my system, they do behave the same way, except for LDDP, which is always sent to the back for some reason. But I really don't know enough about window management to understand why. RE: LDCad on Wine (for Mac)-revisited - N. W. Perry - 2021-05-23 I'd like to get this written up before much longer, but I wanted to put out one more call for anyone willing to test out the proposed configuration, particularly under a recent OS. Thanks! RE: LDCad on Wine (for Mac)-revisited - N. W. Perry - 2021-06-02 Here is the proposed installation process. I've written it up here briefly for those who are willing to test it out. Please let me know if I've missed any steps, or if you encounter issues I'm not aware of. This was tested under 10.15.7 Catalina and will presumably work just as well under Big Sur. (Mojave users can skip parts V and VI, as they can directly open .exe files via Wine Stable.app.) I. Install XQuartz
RE: LDCad on Wine (for Mac)-revisited - Orion Pobursky - 2021-06-02 (2021-06-02, 5:14)N. W. Perry Wrote: You should be able to ctrl-click a downloaded installer/program and choose "Open" to bypass the gatekeeper check. RE: LDCad on Wine (for Mac)-revisited - N. W. Perry - 2021-06-02 (2021-06-02, 5:32)Orion Pobursky Wrote: You should be able to ctrl-click a downloaded installer/program and choose "Open" to bypass the gatekeeper check. You're right, I'd forgotten about that method. I wonder if it has the same effect as going through System Preferences, which prevents further error messages for that developer, or is it just a one-time thing? RE: LDCad on Wine (for Mac)-revisited - Jaco van der Molen - 2021-06-04 (2021-06-02, 5:14)N. W. Perry Wrote: Here is the proposed installation process. I've written it up here briefly for those who are willing to test it out. Please let me know if I've missed any steps, or if you encounter issues I'm not aware of. Thanks Perry! I will test this too! RE: LDCad on Wine (for Mac)-revisited - Jaco van der Molen - 2021-06-04 (2021-06-04, 6:48)Jaco van der Molen Wrote: Thanks Perry! I will test this too! OK, I got LDCad to work! It took a while before the LDraw Libary was loaded. Opening a model and Loading and prepping takes a while too, but then it runs smoothly! What didn't work was this part of your workflow (of course with my username and correct path to LDCad ;-) V. Launch LDCad Open Terminal, run command: /Applications/Wine\ Stable.app/Contents/Resources/wine/bin/wine64 /Users/yourusername/Downloads/LDCad-1-6d-Win/LDCad64.exe I had to just click Wine Stable in my Programs folder and then run wine /Users/jaco/Downloads/LDCad-1-6d-Win/LDCad64.exe Where later I found out that I could just click LDCad64.exe and say Open with and then choose Wine Stable RE: LDCad on Wine (for Mac)-revisited - N. W. Perry - 2021-06-04 (2021-06-04, 10:39)Jaco van der Molen Wrote: What didn't work was this part of your workflow (of course with my username and correct path to LDCad ;-) If you're on Mojave (10.14) or earlier that should work, and I'll be including that as an option on the help page). Trouble is that with Catalina, the Wine Stable app itself cannot be opened because it's 32-bit. Same happens if you try to open the wine executable from the command line, hence why we use the wine64 instead. (I wonder if it's possible to change the Wine Stable app to launch wine64 instead of wine?) Or do you mean you were able to do this under Catalina or Big Sur? RE: LDCad on Wine (for Mac)-revisited - Vincent Messenet - 2021-06-05 Thanks for the detailed procedure! Now I have started my tests under Catalina. First I was not able to do step IV: Install GUI fonts before step V. Launch LDCad because at that moment the .wine folder did not exist yet. So I had to do a first launch of wine64 to be able to do so. And now I'm stuck on step V... After I accept LDCad license agreement I get an error message due to an exception: Code: 0038:fixme:commdlg:IServiceProvider_fnQueryService Interface {e07010ec-bc17-44c0-97b0-46c7c95b9edc} requested from unknown service {e07010ec-bc17-44c0-97b0-46c7c95b9edc} RE: LDCad on Wine (for Mac)-revisited - N. W. Perry - 2021-06-05 (2021-06-05, 7:02)Vincent Messenet Wrote: Thanks for the detailed procedure! Now I have started my tests under Catalina. Ah, good catch. I was naughty and did my test out of order, so I missed that. (I launched LDCad first because I wanted a screen shot of what happens when the fonts aren't installed, but I assumed the user would want to install them first.) Quote:And now I'm stuck on step V... After I accept LDCad license agreement I get an error message due to an exception: Huh boy…that'll be beyond my know-how. Maybe it means something to Roland? Or the folks at WineHQ… I will say that a lot of those fixmes appear in my terminal too, and it works out just fine. So it's a little hard to tell which of these is actually the problem! RE: LDCad on Wine (for Mac)-revisited - Roland Melkert - 2021-06-07 (2021-06-05, 21:00)N. W. Perry Wrote: Huh boy…that'll be beyond my know-how. Maybe it means something to Roland? Or the folks at WineHQ… It looks like it is crashing while opening the directory browser. I'm no wine expert but "ViewModeToListStyle ViewMode 0 not implemented" sounds like it fails to convert the dialog LDCad asks for to the local way of presenting things. As a last resort you could manually edit main.cfg to set the location of the LDraw library to avoid the dialog. But it might still crash when trying to open or save files, as those are similar dialogs. RE: LDCad on Wine (for Mac)-revisited - N. W. Perry - 2021-06-07 (2021-06-07, 18:45)Roland Melkert Wrote: It looks like it is crashing while opening the directory browser. I'm no wine expert but "ViewModeToListStyle ViewMode 0 not implemented" sounds like it fails to convert the dialog LDCad asks for to the local way of presenting things. Aha, that's interesting because in my test, the directory dialog does comes up, but looks funny. It has only a text field to input the library path, but there is no file browser visible (just a big empty space). This definitely didn't happen in my previous install. Vincent, what if you try it with Wine 4.0.3 instead of Wine 5.0? Or could it have anything to do with XQuartz, which relates to the GUI? Maybe an earlier version would work. RE: LDCad on Wine (for Mac)-revisited - Jaco van der Molen - 2021-11-28 I have a new Macbook with OS Monterey 12.0.1. Any thoughts on how to (if possible) get LDCad to run on it? The current stable version of Wine does not work and the latest dev is to OS 10.14. RE: LDCad on Wine (for Mac)-revisited - Orion Pobursky - 2021-11-28 (2021-11-28, 12:00)Jaco van der Molen Wrote: I have a new Macbook with OS Monterey 12.0.1. If it has an M1 chip, I don't think it's current possible. RE: LDCad on Wine (for Mac)-revisited - Manfred Kern - 2022-01-23 (2021-06-04, 6:48)Jaco van der Molen Wrote: Thanks Perry! I will test this too! RE: LDCad on Wine (for Mac)-revisited - Manfred Kern - 2022-01-23 (2021-11-28, 12:35)Orion Pobursky Wrote: If it has an M1 chip, I don't think it's current possible. This will also work with wine 7.0 on a Macbook Air M1. Just use wine64 instead of wine and use LDCad64.exe RE: LDCad on Wine (for Mac)-revisited - Roland Melkert - 2022-01-24 (2022-01-23, 13:39)Manfred Kern Wrote: This will also work with wine 7.0 on a Macbook Air M1. Just use wine64 instead of wine and use LDCad64.exe Curious, does it use hardware rendering? Given Apple has dropped OpenGL support it must be using some sort of emulation layer if it does hardware acceleration. Last I heard that wasn't extremely stable/finished so there might be some rendering glitches. RE: LDCad on Wine (for Mac)-revisited - Travis Cobbs - 2022-01-24 (2022-01-24, 22:06)Roland Melkert Wrote: Curious, does it use hardware rendering? Apple deprecated OpenGL, but it still works on macOS. RE: LDCad on Wine (for Mac)-revisited - N. W. Perry - 2022-01-25 (2022-01-23, 13:39)Manfred Kern Wrote: This will also work with wine 7.0 on a Macbook Air M1. Just use wine64 instead of wine and use LDCad64.exe Any chance the desktop switching (non-)bug is fixed in 7.0? RE: LDCad on Wine (for Mac)-revisited - Manfred Kern - 2022-02-11 There are some issues trying to zoom a model. LDCad running in wine emulator is not accepting '+' (plus symbol) for zooming in. '-' (minus symbol) for zooming out works very well. Strange. I have a MacBook Air M1 with international keyboard and British keyboard layout. Entering '+' in a text field of LDCad (such as Prefs -> Search (library) paths) works. I think one is keyboard input in OpenGL and the other is key input in wine windows lib (user.lib ?). This is a bit of a pain, when you are working on a model without a mouse. Zooming with a trackpad (gently sweeping with two fingers) is staggering (sometimes it works, it works "too much", ...). Using the wheel on a mouse is working fine. RE: LDCad on Wine (for Mac)-revisited - N. W. Perry - 2022-02-11 (2022-02-11, 10:27)Manfred Kern Wrote: There are some issues trying to zoom a model. There was a very recent thread on this, as it happens. It seems to depend on how your keyboard behaves. On my MacBook Pro, the built-in keyboard worked properly, but my new external USB keyboard with number pad does not. So I believe it's related to how the MacBook compensates for the absence of a number pad. I ended up just changing the hotkey assignment—which any Mac user will need to do in some cases anyway (such as the lack of an Insert key, which I changed to the space bar; it really feels second nature now). RE: LDCad on Wine (for Mac)-revisited - Manfred Kern - 2022-02-11 (2022-02-11, 14:36)N. W. Perry Wrote: There was a very recent thread on this, as it happens. It seems to depend on how your keyboard behaves. On my MacBook Pro, the built-in keyboard worked properly, but my new external USB keyboard with number pad does not. So I believe it's related to how the MacBook compensates for the absence of a number pad. Thank you. I did not scan the 'LDCad 1.7 Alpha 1 (win+linux)'. I thought it would only tackle the 1.7 version. Hm, I was wrong. So, I changed the relevant line to "editWin_zoomIn=SHIFT++" in the file config file main.hkc. Now it is working. RE: LDCad on Wine (for Mac)-revisited - N. W. Perry - 2022-07-18 Here's a system upgrade/update: I just moved to a Silicon M1 MacBook Pro 16" on macOS 12.4 Monterey. Installed Wine Stable 7.0 using the regular Mac package—no Homebrew or any other fancy business, and no XQuartz, either—and LDCad 64 started right up and ran beautifully. The system prompted me to install Rosetta 2, so the only thing I had to do manually was the usual font install. Oh, and the desktop switching issue is gone, too! RE: LDCad on Wine (for Mac)-revisited - Roland Melkert - 2022-07-18 (2022-07-18, 4:59)N. W. Perry Wrote: so the only thing I had to do manually was the usual font install.Are there any font files available in the out-of-the-box mapped windows/fonts folder? If so I could just add appropriate mac fonts to the default font list of main.gui like it has for Linux. RE: LDCad on Wine (for Mac)-revisited - N. W. Perry - 2022-07-18 (2022-07-18, 7:22)Roland Melkert Wrote: Are there any font files available in the out-of-the-box mapped windows/fonts folder? No, the fonts folder is empty on a clean install. But I wonder if Wine would know to look in the Mac system folder, if you did add them? I’ll try that later. RE: LDCad on Wine (for Mac)-revisited - Roland Melkert - 2022-07-18 (2022-07-18, 20:55)N. W. Perry Wrote: No, the fonts folder is empty on a clean install. But I wonder if Wine would know to look in the Mac system folder, if you did add them? I’ll try that later. If the mac font folder is reachable trough a wine pad you can add it to the <userFontLocations> section of main.cfg It will look for the fonts given in main.gui at that location. If none of the default fonts is availble you can still add mac specific ones to main.gui. If you find something suitable this way I could make them the hardcoded defaults so it would work out of the box with the next release. RE: LDCad on Wine (for Mac)-revisited - N. W. Perry - 2022-07-19 (2022-07-18, 21:09)Roland Melkert Wrote: If the mac font folder is reachable trough a wine pad you can add it to the <userFontLocations> section of main.cfg Cool, by adding the system font folder, then it will automatically find Verdana which you already include. (You could also use Trebuchet, or Tahoma if you like something narrower.) You'd still need to fix the monospace fonts. Your main.gui says "cour" which can be changed to Courier. But Menlo looks much better. BTW, the default path on Macs (translated for Wine) is Z:\System\Library\Fonts. RE: LDCad on Wine (for Mac)-revisited - Roland Melkert - 2022-07-19 (2022-07-19, 3:01)N. W. Perry Wrote: Cool, by adding the system font folder, then it will automatically find Verdana which you already include. (You could also use Trebuchet, or Tahoma if you like something narrower.) I'll check for "Z:\System\Library\Fonts" on startup (in the windows version) and if it exists the search order would become: - The main.gui file's folder - main.cfg font locations - windows font folder (usually c:\windows\fonts) - Z:\System\Library\Fonts I found an opensource download for Menlo, it contains a "Menlo-Regular.ttf" is this the same for the mac? On windows there is a cour.ttf file hence the short name, so it's called courier.ttf mac? If so I'll just use both names in the list RE: LDCad on Wine (for Mac)-revisited - Travis Cobbs - 2022-07-20 (2022-07-19, 18:49)Roland Melkert Wrote: On windows there is a cour.ttf file hence the short name, so it's called courier.ttf mac? I don't know about inside Wine, but on the file system, in /System/Library/Fonts, there is a Courier.ttc file (TrueType font collection), but no Courier.ttf. Menlo is also a collection (Menlo.ttc). RE: LDCad on Wine (for Mac)-revisited - N. W. Perry - 2022-07-20 (2022-07-20, 1:31)Travis Cobbs Wrote: I don't know about inside Wine, but on the file system, in /System/Library/Fonts, there is a Courier.ttc file (TrueType font collection), but no Courier.ttf. Menlo is also a collection (Menlo.ttc). Yes, same for me. However just "menlo" and "courier" in the main.gui file was enough to find the right font. Mac users can also add fonts elsewhere (like their home folder), but this should cover a clean install. Here is what it looks like with Verdana and Menlo: Here's Courier instead of Menlo (not as nice): And here's Tahoma instead of Verdana: That one might be useful for smaller screens for e.g. the hint bar font. RE: LDCad on Wine (for Mac)-revisited - Travis Cobbs - 2022-07-20 (2022-07-20, 3:02)N. W. Perry Wrote: And here's Tahoma instead of Verdana: For what it's worth, I believe that the system font on macOS is Helvetica Neue (found in HelveticaNeue.ttc). You might see how that looks instead of Tahoma or Verdana. Note: I have found conflicting results for what the system font is. One hit states "Helvetica Neue". Apple themselves state that the system font is SF Pro on one page, but since you have to download SF Pro from their site, and it's a 117 MB DMG, I don't see how this can be true. My Mac has some SF*.ttf files, but none of them looks like "SF Pro". Calling +[NSFont menuFontOfSize:0] at runtime inside the Xcode debugger yields the following: Code: (lldb) po [NSFont menuFontOfSize:0] So, not very helpful. (+[NSFont systemFontOfSize:0] produces the same result, FYI.) Digging a little deeper, I see that the system font's Postscript name is SFNS-Regular, so I guess the system font is probably SFNS. There is an SFNS.ttf file in /System/Library/Fonts. RE: LDCad on Wine (for Mac)-revisited - Roland Melkert - 2022-07-20 (2022-07-20, 3:02)N. W. Perry Wrote: Yes, same for me. However just "menlo" and "courier" in the main.gui file was enough to find the right font. Thanks for the information I'll make "DejaVuSansMono,FreeMono,menlo,courier,cour,FreeSans" the default for the mono ones (mostly the editor). RE: LDCad on Wine (for Mac)-revisited - Roland Melkert - 2022-07-20 (2022-07-20, 5:22)Travis Cobbs Wrote: Digging a little deeper, I see that the system font's Postscript name is SFNS-Regular, so I guess the system font is probably SFNS. There is an SFNS.ttf file in /System/Library/Fonts. I could probably get the default font trough the windows api as Wine should map that automatically. I just don't use that at the moment as the OpenGL part of the gui renders fonts using free-type (https://freetype.org/) which wants direct access to ttf or ttc files. Also the gui is somewhat hardcoded size wise etc, hoping to improve that with one of the upcoming beta's though (mostly for 4K screens). RE: LDCad on Wine (for Mac)-revisited - Travis Cobbs - 2022-07-20 (2022-07-20, 18:20)Roland Melkert Wrote: I could probably get the default font trough the windows api as Wine should map that automatically. I'm pretty sure that if you asked Wine, it would give you whatever it uses as the default Windows font, which I would think would be very unlikely to match the macOS system font. You're welcome to do that anyway, and since it is a Windows app, it might be nice. I think it would make it look more like a Windows app, and not more like a Mac app, but given that it's not a Mac app, that's appropriate. I believe that Segoe UI is the current default font in Windows. However, that font doesn't exist on the Mac, so Wine presumably uses something else (maybe Tahoma?). RE: LDCad on Wine (for Mac)-revisited - N. W. Perry - 2022-07-22 Next question will be whether any of my other Windows-only apps will run, as I believe they’re all 32-bit. (DatHeader, LDDP, MPDCenter, img4dat etc.) Wine 7.0 is supposed to support this, however… RE: LDCad on Wine (for Mac)-revisited - Roland Melkert - 2023-04-27 Been working on the font changes. LDCad 1.7 Beta 1 (windows version only) will now automatically append "z:\system\library\fonts\" to the font search order if it exists. And i changed the default fonts to: normal -> DejaVuSans,FreeSans,verdana mono -> DejaVuSansMono,FreeMono,menlo,cour,Courier,FreeSans I think I only need a common non mono font filename for it to work out-of-the-box (font wise) using wine. any thoughts on which one? RE: LDCad on Wine (for Mac)-revisited - MarcoOrtiz - 2023-05-04 (2021-04-14, 22:09)N. W. Perry Wrote: Any of these should be suitable as-is. I had the free ones installed, but I just now downloaded DejaVu, and now they load into the GUI just fine. (I just copied the two .ttf files for DejaVuSans and DejaVuSansMono, not the entire directory.) i downloaded and tested, after downloading DejaVu these fonts have no problem. RE: LDCad on Wine (for Mac)-revisited - N. W. Perry - 2023-05-04 (2023-04-27, 21:49)Roland Melkert Wrote: Been working on the font changes. You mean, something more universal than Verdana? How about Helvetica? Or you mean you need the literal path to the font file, such as /System/Library/Fonts/Supplemental/Verdana.ttf ? (That's where it is on my system anyway.) RE: LDCad on Wine (for Mac)-revisited - Roland Melkert - 2023-05-04 (2023-05-04, 5:54)N. W. Perry Wrote: You mean, something more universal than Verdana? How about Helvetica? The name excluding extension will do (LDCad searches recursively in known font locations). I'll add Helvetica to the list. RE: LDCad on Wine (for Mac)-revisited - N. W. Perry - 2023-05-05 I thought it would be timely to give an update on the basic topic of this thread…that is, using LDCad and other LDraw programs on the Mac under Wine. My configuration now is: MacBook Pro 16-in. (2021, M1 Silicon) MacOS 12.6.5 Monterey Wine Crossover v22.1.0 (this modified version of Wine using the Codeweavers source) This configuration is now sufficient to run pretty much anything, 32-bit or 64-bit, and best of all does not require a paid version of CrossOver as it's essentially the same source code. I've successfully at least opened, if not extensively worked with:
Additionally, I didn't have to install Quartz or create any special app launchers—it's enough just to double-click the .exe files for the program you want. I did install Wine using Home-brew, via this tap: Code: brew install --cask --no-quarantine gcenx/wine/wine-crossover And in general, gcenx's basic installation guide for Wine on Mac is enough information to get up and running. In other words, this has gotten a lot easier than it used to be! |