Thanks for your reply. To make sure that I'm using the exact same
fonts, I copied the ttf fonts used by Windows and replaced the ones on
Linux and then proceeded with running fc-cache. I'm still running
into the same problem. So why is it still working on Windows and not
on Linux although it is the exact same font? The only difference is
that I have the cDEFAULT option under Windows. Any other suggestions?
Thanks.
On Fri, 17 Jun 2011 11:54 +0200, "Tony Mechelynck"
<antoine.mechelynck@gmail.com> wrote:
> On 17/06/11 10:45, Mathew Brown wrote:
> > Hi,
> >
> > I ran into a problem displaying Arabic fonts with tashkeel (an example
> > is shown here next to "Google Labs" -
> > http://tashkeel.googlelabs.com/). The font that I am currently using
> > is Deja Vu Sans Mono. I am using the same setup on both Windows and
> > Linux. My guifonts line for Windows looked like this: set
> > guifont=DejaVu_Sans_Mono:h10:cANSI and I read somewhere that I should
> > change this to cDEFAULT instead of cANSI at the end. This resolved
> > the problem on gVim under Windows. However, I'm having no such luck
> > on GTK Vim on Linux although I'm using the exact same font. Any
> > ideas? How can I set cDEFAULT under GTK Vim on Linux? When I tried
> > to use cDEFAULT (by set guifont=DejaVu\ Sans\ Mono\ 10:cDEFAULT), a
> > single letter would take two spaces instead of one and would look
> > disconnected, unlike Windows which only takes a single space. Any
> > ideas? Thanks a lot.
> >
> > PS. I am using gVim 7.3 on both Windows and Linux with DejaVu v2.33.
> > Thanks.
>
> Under GTK2,
>
> if has('gui_gtk2')
> set gfn=Deja\ Vu\ Sans\ Mono\ 10
> endif
>
> ought to be enough. The :cANSI parameter belongs to a different,
> incompatible, implementation of 'guifont' and is not applicable to GTK2.
>
> And the fact that the font bears the same name doesn't mean it's the
> exact same font, unless you installed the same font file on both
> systems. It could be a different /version/ of the same font.
>
> On GTK2, unlike what happens on most other GUIs, if some particular
> glyph isn't found in the chosen font, the rendering system will try to
> find it in a different installed font. However this may mean mixing of
> glyphs with different look & feel. You might try using a different font
> on Linux, e.g. (if it is installed),
>
> set gfn=Courier\ New\ 10
>
> (and if it isn't, how to find it and install it will vary from one Linux
> distro to the next).
>
> See also
> http://vim.wikia.com/wiki/Setting_the_font_in_the_GUI
>
>
> HTH,
> Tony.
> --
> hundred-and-one symptoms of being an internet addict:
> 112. You are amazed that anyone uses a phone without a modem on it...let
> alone hear actual voices.
>
--
Mathew Brown
mathewbrown@fastmail.fm
--
http://www.fastmail.fm - mmm... Fastmail...
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment