[MonoDevelop] osx Lucida Grade warning: a typo?

Bart Masschelein masschel at gmail.com
Sun Nov 30 07:10:15 EST 2008


On 30 Nov 2008, at 06:33, Michael Hutchinson wrote:

> On Sat, Nov 29, 2008 at 9:49 PM, Bart Masschelein  
> <masschel at gmail.com> wrote:
>>>> Selecting text in osx is not correct, in that the cursor always is
>>>> slightly off when clicking with the mouse. The farther to the  
>>>> right in
>>>> the line, the more off the cursor is. Could the following warning  
>>>> be
>>>> related to this issue:
>>>>
>>>> Pango-Warning: couldn't load font "Lucida Grade Not-Rotated 14",
>>>> falling back to "Sans Not-Rotated 14", expect ugly output.
>>>>
>>>> When I google for Lucida Grade, it does not give me any results,  
>>>> but
>>>> Lucida Grande does (http://en.wikipedia.org/wiki/Lucida_Grande),  
>>>> which
>>>> is apparently a Mac OS specific font. Could this be a typo? And  
>>>> is it
>>>> coming from MonoDevelop, or is it a Pango issue?
>>>
>>> It appears to be a typo in the Mac addin:
>>>
>>>
>>> http://anonsvn.mono-project.com/viewvc/trunk/monodevelop/main/src/addins/MacPlatform/MacPlatform.cs?view=markup
>>>
>>> However, the selection problem is a separate issue. Could you file  
>>> a bug
>>> report?
>>
>> Ok, no problem, but before I do that maybe it is worth mentioning the
>> following, in case it matters.
>>
>> I have all the dependencies required to compile/install MD  
>> installed through
>> MacPorts (as described in http://www.naiznoiz.share-a-book.com/? 
>> p=27), but I
>> did not install the gtksourceview package(s), as MD seems to run  
>> without it.
>> Until a while ago, MD reported that this package was not installed  
>> during
>> the configuration step, but recently this does not happen anymore,  
>> so I
>> assume it is not a requirement. Is this true? Could this be related?
>
> Yes, we replaced GtkSourceView with a new, fully managed text editor,
> so this is a bug in the new implementation. It's probably Mac-specific
> or font-specific.
>
>> Thanks for pointing the location of the file with the typo. I  
>> changed this
>> in my local checkout, and the warning is gone. But indeed, it does  
>> not solve
>> the selection problem. So if the above is unrelated as well, I'll  
>> file a bug
>> report.
>>
>> FYI, I thought that maybe the cause was that Lucida Grande is not a
>> monospace font (I'm not a font expert, but I guess I'm right), so I  
>> changed
>> to Courier New, in the preferences, and the problem remains as well.
>
> Thanks. Can you suggest the best default monospace font for a Mac too?

Great news! Since usually I don't deal with fonts that much, I googled  
for monospaced fonts on osx, and came up with http://www.cfcl.com/vlb/h/fontmono.html 
, in which they mention Osaka Regular-Mono as a Mac specific  
monospaced font. I selected that in the preferences in MD, and apart  
from the fact that I like the font, the selection of text also works  
as expected! By magic ;-)?

In the article they also mention Monaco as an Apple monospaced font,  
but when I select that one, we're back to the mentioned error...

I'll summarize this today in bug report. I hope that the fact that at  
least one font (in casu Osaka Regular-Mono) gives the expected results  
helps you to nail down the problem.

I would recommend in the mean time to use in the MacPlatform.cs file  
this Osaka Regular-Mono, size 14. Like this other Mac MD users will  
have a better experience, until the bug is solved.

Bart


More information about the Monodevelop-list mailing list