You are not logged in.
Hey guys,
I'm using the Termite terminal emulator which uses fontconfig for font rendering options. I'm also using vim powerline.
I use the Monaco font and have installed the otf-powerline-symbols-git package.
This is what my powerline looks like up close. As you can see the symbols appear to be 1px too high.
Here's my font config
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Use Monaco for everything monospace -->
<match target="pattern">
<test qual="any" name="family"><string>Consolas</string></test>
<edit name="family" mode="assign" binding="same">
<string>Monaco</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family"><string>Courier</string></test>
<edit name="family" mode="assign" binding="same">
<string>Monaco</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family"><string>Courier New</string></test>
<edit name="family" mode="assign" binding="same">
<string>Monaco</string>
</edit>
</match>
<alias>
<family>monospace</family>
<prefer>
<family>Monaco</family>
<family>Consolas</family>
</prefer>
</alias>
<!-- Monaco is a little bit to large, making fallback fonts look small -->
<match target="font">
<test name="family"><string>Monaco</string></test>
<edit name="pixelsize" mode="assign">
<times><name>pixelsize</name>, <double>0.9</double></times>
</edit>
</match>
</fontconfig>It doesn't seem like there's a fontconfig option to move the font's baseline down. Any ideas?
Last edited by EvanPurkhiser (2013-08-10 02:45:35)
Offline
Setting the font's baseline is actually not fontconfig's job. However, you may try adjusting infinality-settings.sh:
export INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS="true|false":: Registered Linux User No. 223384
:: github
:: infinality-bundle+fonts: good looking fonts made easy
Offline
Thanks bohoomil, I tried changing this setting (it was already set to true since I'm using your infinality bundle!) but it didn't seem to have an effect.
It looks like I can fix this alignment issue by actually editing the OTF symbols font with fontforge. But it would be much nicer if there was some kind of setting I could change so I could use the upstream font.
Edit: Reading through the issues, it looks like it's common practice to just accept that the font needs to be edited on a per-system basis.
Last edited by EvanPurkhiser (2013-08-10 01:21:06)
Offline
Alright. I fixed this in my case by modifying the actual PowerlineSymbols.otf. Here's the fixed OTF for anyone who is haiving a similar problem.
Here's vim in all it's glory now, just need a new colorscheme ![]()
Offline