public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Andy Koppe <andy.koppe@gmail.com>
To: cygwin@cygwin.com
Subject: Re: mintty fonts (was: Re: setup and mintty)
Date: Thu, 26 May 2011 05:08:00 -0000	[thread overview]
Message-ID: <BANLkTin8OMkQkbmUhsERNWnYvw8=mjPCDw@mail.gmail.com> (raw)
In-Reply-To: <4DDD6DD8.9060601@ece.cmu.edu>

On 25 May 2011 22:00, Ryan Johnson wrote:
> On 25/05/2011 3:48 PM, Andy Koppe wrote:
>>
>> On 25 May 2011 19:05, Ryan Johnson wrote:
>>>>>
>>>>> How do you get mintty to see Liberation Mono? I downloaded the family
>>>>> from
>>>>> redhat, installed it on my w7-x64 machine, made sure it was set to
>>>>> 'show,'
>>>>> and started a fresh mintty, but it still can't find the font.
>>>>
>>>> Works for me, on w7-x64. Make sure the font shows up in the Fonts
>>>> control panel and that it isn't hidden, i.e. not appearing greyed out.
>>>> There's a 'Show' button along the top of the panel in case it is.
>>>
>>> I tried to say before that I have done that (I saw the closed bug about
>>> this
>>> and made sure to follow the instructions there). Unchecking that setting
>>> about language-specific hiding made a whole bunch of other (presumably
>>> Asian) fonts show up in mintty, but still no Liberation Mono.
>>
>> I actually wasn't talking about that option, but the abilily to
>> show/hide each font separately. But it doesn't sound like that's the
>> issue anyway.
>>
>>> The font is officially installed, officially showing, and usable by just
>>> about everything except mintty. Most apps (like Word) picked it up
>>> immediately.
>>
>> Right, I'm afraid that leaves me stumped, given it's fine here. Do you
>> fancy messing with the mintty source code to see which flag on
>> ChooseFont() is excluding that font? It's in select_font() in
>> winctrls.c. I guess CF_FIXEDPITCHONLY is the prime candidate.
>
> Removing CF_FIXEDPITCHONLY indeed allows the font to show (and a whole pile
> of non fixed-pitch friends). Apparently the font version I downloaded
> (liberation-fonts-ttf-1.06.0.20100721) doesn't mark itself as fixed-pitch?
>
> When I select liberation mono, ChooseFont populates the LOGFONT with
> lfPitchAndFamily=0x32. MSDN says:
>>
>> The two low-order bits specify the pitch of the font and can be one of the
>> following values.
>>
>>    DEFAULT_PITCH
>>    FIXED_PITCH
>>    VARIABLE_PITCH
>
> Sure enough, grep-find over /usr/include/w32api shows:
>>
>> wingdi.h:380:#define VARIABLE_PITCH 2

Thanks very much for investigating.

> I guess somebody needs to file a bug with fedorahosted.org, but I didn't see
> an obvious way to request an account with them. Do you have one by chance?

Nope, sorry.

Clicking at the first hopeful-looking Google result for "Liberation
Mono", I'd downloaded it from a site called dafont.com. Apparently I
picked up an old version without that problem: 1.04.

Andy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2011-05-26  5:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-25 19:49 Andy Koppe
2011-05-25 21:00 ` Ryan Johnson
2011-05-26  5:08   ` Andy Koppe [this message]
2011-05-26  6:10     ` Corinna Vinschen
2011-05-26 12:09       ` Charles Wilson
2011-05-26 12:27         ` KHMan
2011-05-26 13:20         ` Corinna Vinschen
2011-05-26 13:42           ` Ryan Johnson
2011-05-26 13:47             ` Corinna Vinschen
2011-05-26 14:04               ` Charles Wilson
2011-05-26  5:32 Andy Koppe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='BANLkTin8OMkQkbmUhsERNWnYvw8=mjPCDw@mail.gmail.com' \
    --to=andy.koppe@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).