[SOLVED] VIM not displaying many glyphs

I'm struggling to get the full glyph set to display in VIM. Particularly missed are the mathematical super- and sub-script. I've worked on the problem and tried various fixes for displaying UTF-8 characters without success.
(Code block bad form? Ok T. IMHO. There's that type of post where the OP doesn't know why something isn't working and they quote a dump truck of details, even though they're not sure what's relevant and what isn't. And the longer the quote, the harder it is to figure out what they're doing wrong. I didn't want to be that guy. I was hiding the verbosity, in the event my font problems are simpler than I've made it.)
1) Applied settings from these WIKI pages:
Fonts
Xterm
2) Apps I've installed
$ pacman -Qs font
local/dina-font 2.92-4
    A monospace bitmap font, primarily aimed at programmers
local/fontconfig 2.11.1-1
    A library for configuring and customizing font access
local/fontsproto 2.1.3-1
    X11 font extension wire protocol
local/freetype2 2.5.3-2
    TrueType font rendering library
local/gsfonts 1.0.7pre44-4
    Standard Ghostscript Type1 fonts from URW
local/libfontenc 1.1.2-1
    X11 font encoding library
local/libotf 0.9.13-2
    OpenType Font library
local/libxfont 1.4.7-3
    X11 font rasterisation library
local/libxft 2.3.2-1
    FreeType-based font drawing library for X
local/t1lib 5.1.2-5
    Library for generating character- and string-glyphs from Adobe Type 1 fonts
local/tamsyn-font 1.10-1
    A monospaced bitmap font for the console and X11
local/terminus-font 4.39-1
    Monospace bitmap font (for X11 and console)
local/ttf-bitstream-vera 1.10-10
    Bitstream vera fonts
local/ttf-droid 20121017-3
    General-purpose fonts released by Google as part of Android
local/xorg-bdftopcf 1.0.4-2 (xorg xorg-apps)
    Convert X font from Bitmap Distribution Format to Portable Compiled Format
local/xorg-font-util 1.3.0-2 (xorg-fonts xorg)
    X.Org font utilities
local/xorg-font-utils 7.6-4
    Transitional package depending on xorg font utilities
local/xorg-fonts-100dpi 1.0.1-5 (xorg)
    X.org 100dpi fonts
local/xorg-fonts-alias 1.0.3-1
    X.org font alias files
local/xorg-fonts-encodings 1.0.4-4 (xorg-fonts xorg)
    X.org font encoding files
local/xorg-fonts-misc 1.0.1-3
    X.org misc fonts
local/xorg-fonts-type1 7.4-3
    X.org Type1 fonts
local/xorg-mkfontdir 1.0.7-2 (xorg xorg-apps)
    Create an index of X font files in a directory
local/xorg-mkfontscale 1.1.1-1 (xorg-apps xorg)
    Create an index of scalable font files for X
3) A forum search found some common issues: 
unicode symbols not working in my terminal
$ localectl
   System Locale: LANG=en_US.UTF-8
                  LC_COLLATE=C
       VC Keymap: US
      X11 Layout: n/a
$ locale -a
C
en_US.utf8
POSIX
$ echo $TERM
xterm-256color
4) ~/.Xresources
! wiki.archlinux.org/.../Xterm
xterm*termName:           xterm-256color
xterm*locale:             true
xterm*saveLines:          4096
xterm*bellIsUrgent:       false
xterm*VT100.geometry:     80x25
xterm*faceName:           Droid:style=Regular:size=12
xterm*dynamicColors:      true
xterm*utf8:               2
xterm*toolBar:            false
5) ~/.xinitrc
# X11 Fonts
xset +fp /usr/share/fonts
Last edited by xtian (2014-07-27 14:43:23)

Linux fonts are a muddle.  Consoles can only display 256 characters, maybe 512.  You simply cannot display many texts in a console. To navigate through the font mess in X, you need some familiarity with fontconfig.  Xft uses fontconfig to select fonts.  Fontconfig documentation is not user-friendly.
Droid is a family of fonts. My installation of the Droid family includes 27 different fonts. The command fc-list will list fonts matching a pattern.  I usually filter the output by piping through grep. To list the Droid fonts, file name first followed by the fontconfig name, I use:
$ fc-list | grep Droid
Your fc-match results for Droid are from fontconfig doing its best to give you a readable display.  Fontconfig cannot find a matching font for the name 'Droid', so it falls back to a "safe" font, 'Bitstream Vera Sans'.
XTerm or UXTerm or URxvt
I have my locale correctly configured, I think. I do not see any real advantage for uxterm over xterm. In my X resources, I include the lines,
xterm*termName: xterm-256color
XTerm*locale: true
For good glyph coverage with xterm, I have found 'DejaVu Sans Mono' to be among the better fonts.  If I truly need utf8 coverage, I use urxvt. Urxvt allows one to use a ladder of fonts. If the character is not found in the first font listed, urxvt will search through the other listed fonts until it finds a glyph that can be displayed.
urxvt*font: xft:DejaVu Sans Mono:style=Book:antialias=false:size=8, \
xft:WenQuanYi Bitmap Song:size=8, \
xft:FreeSerif:style=Regular, \
xft:unifont:style=Medium:antialias=false
Here's a screenshot with three xterms using Droid, DejaVu Sans Mono, and Liberation Mono, plus one urxvt using the fonts in the code above.  They all show the same portion of Markus Kuhn's utf8 test text.

Similar Messages

  • [Solved] Grub not displaying menu, error messages from grub-mkconfig

    Hi I'm new
    I have (or rather, am trying to setup) a dual boot with Windows 8.1 and Arch, with each OS on separate SSDs.
    Windows 8.1 already installed, Arch installation (seems to have) has gone smoothly. However, when I remove the installation usb, and try to boot, I get a command line prompt:
    grub >_
    ...instead of a menu. I tried typing 'boot', but got 'you need to load the kernel first'. So I cannot access my arch installation without chrooting (or knowing how to compile the kernel in the command line, which I could not find after a lot of searching)
    I followed the documentation in the Beginner's Guide and the GRUB page for installing and configuring GRUB. This is UEFI (grub2), not BIOS (grub legacy).
    pacman -S grub efibootmgr
    grub-install --target=x86S64-efi --efi-directory=/boot --bootloader-id=arch_grub --recheck
    No error messages. I also installed os-prober for kicks. When I went to generate the config file (as recommended for beginners), I got a torrent of what I interpreted to be error messages, not just copacetic output:
    grub-mkconfig -o /boot/grub/grub.cfg
    resulted in:
    click this link for error messages
    (sorry about the image. I had to shutdown and reboot into my windows partition, since I still can't arch it up. If any/all of you have a better way to reproduce output and feel it pertinent, I'm all ears)
    so upon exiting chroot and rebooting, grub boots up to the above effect; no menu is displayed. And I am sad panda.
    Background Information:
    Partition scheme:
    /dev/sda1 - BIOS boot partition (I didn't read carefully, lol)
    /dev/sda2 - EFI System Partition - mounted to /mnt/boot when chrooting in
    /dev/sda3 - Root partition - mounted to /mnt/ when chrooting in
    /dev/sda4 - Home partition - mounted to /mnt/home when chrooting in
    The installation and configuration described above was done in chroot with the above partition scheme
    I originally had issues booting into UEFI mode with the arch iso (written to a usb stick for the initial install). The boot would hang at 'triggering uevents'. I ultimately fixed this by pressing 'e' in the bootloader menu (also grub, I believe) and prepended
    linux /boot/vmlinux-linux root=UUID=978e3e81-8048-4ae1-8a06-aa727458e8ff nomodeset nouveau.modeset=0
    It then (successfully triggered uevents? and) booted normally
    ALSO:
    This is a custom built pc.
    Hardware:
    intel i7 4930K
    ASUS Sabertooth X79 mobo
    ASUS GTX 780 Ti gpu
    ballistix sport DDR3 RAM (4 x 8 GB)
    3 x 128 GB SSD (ADATA P900)
    1 x 2 TB HDD (Toshiba, 7200 rpm)
    Hey, if you made it to the bottom of this post, I really appreciate you taking the time out of your day. Thank you!
    Last edited by Otsdarva (2014-06-09 03:22:25)

    I realized that since I was not using EFISTUB, I could not mount the ESP to /boot; it had to be /boot/efi. A quick remount-reinstall of grub, then rerunning grub-mkconfig solved the issue.
    Also, regarding WonderWoofy's suggestion: I learned by trying gummiboot that for whatever reason the kernel hadn't compiled properly when I ran
    pacstrap /mnt base base-devel
    Fixed via
    pacman -S linux
    Thanks for your help, everybody!

  • [SOLVED]Xfce4 not displaying any characters.

    I got this weird problem with xfce4.
    I have an old machine I want to use as a bittorrent client. For this I want to use xfce4 (with azureus).
    So now that I've installed xfce4 none of the characters on the screen are shown correctly. They're all just squares?
    Thinking I had a font problem, I started going through all my installed fonts, and even installing some extra fonts. None of it helped.
    I'm not sure if it is related to the problem, but when I kill X.org there are some messages in the console. They look like this one:
    Pango-WARNING **: pango_cairo_font_get_scaled_font called with bad font, expect ugly output.
    I've also been trying different settings for the locale, thinking it might be a localization problem. That didn't help either.
    Does anyone know what I'm doing wrong here?
    If there are any config or log files you would like to see, just let me know.
    EDIT:
    Nevermind. It never stops to amaze me how incredibly stupid I can be.
    Pango of course needs the sdl_pango package to function properly! Of course I was under the impression that all dependencies were handled automatically?
    Have a nice New Years Eve everyone.
    Last edited by madeye (2007-12-30 13:27:46)

    x33a wrote:Try a different font.
    I know that this font works because I tried it in urxvt and it displayed correctly.
    Also, I tried "override_utf8_locale yes" and it still was incorrect.

  • Vim not displaying CKJ text

    even though vim is compiled with multibyte support and multilang, most of the Japanese, or Korean text is displayed as question marks, tildas, and other symbols. Some parts of the text are displayed correctly.
    Any where i should look to make changes?
    Thanks
    Sample of Chinese text in vim
    ?~L~W京奧?~A~K?~\~C?~A~V?~A??~@~L祥?~[??~@~M?~J?~M~H?~\??~Q??~R~L浩?~I??~B?~B??~A~^? ~L?~@~Y?~X??~E??~~
    R~Y?~O??~G?治?~M~@?~C?~E??~Z~D?~V?~Y?~B??~A~^?~@~B

    Ah! You have to deselect the Escape non-ASCII option under Emulation for the terminal.
    Inputting in CJK
    For those unfamiliar:
    1) Launch the Terminal, then start up vim as usual.
    2) Type :set encoding=utf-8
    3) File->Show Info
    4) Select "Emulation" from the drop-down
    5) Uncheck the Escape non-ASCII option
    Switch to the input method you desire then start typing.
    This allows you to paste in text from websites and such as well (even if the webpage was encoding using something other than UTF-8).
    I got the answer here http://www.vim.org/htmldoc/mbyte.html#mbyte-first

  • [Solved] Characters not displaying correctly in some applications

    When I read things in applications like Firefox I've noticed that sometimes the " symbol is displayed wrong. Sometimes it is shown as what I can only describe as two forward-ticks stuck together (it won't let me paste it), and other times as two back-ticks ``. When I try to paste code over to the rxvt-unicode terminal the forward-tick symbol is displayed as a question mark, as are some other special symbols like maths characters. So I have two questions: are there any terminals that support such special characters? And is my character display problem related to setting up my locales correctly (which I think I already have)?
    I followed the steps on the wiki for setting up locales. I uncommented "en_GB.UTF-8 UTF-8" and "en_GB ISO-8859-1" in /etc/locale.gen, ran locale-gen as root, and added  LOCALE="en_GB.utf8" to /etc/rc.conf and "export LANG=en_GB.utf8" to my .zshrc. locale -a shows that the correct locales are installed.
    Last edited by slyson (2009-06-16 15:20:18)

    See this pdf for fixes: unix.derkeiler.com/pdf/Mailing-Lists/Fr … g00564.pdf.
    Type 'locale' on the console to find out your locale. Mine is en_GB.utf8.
    Now add the following to your shell profile or ~/.xinitrc.
    I already had this in my .zshrc:
    export LANG=en_GB.utf−8
    But I think the LC variable was overriding it. I Changed my LC_ALL to:
    export LC_ALL=en_GB.utf8
    (It was set to LC_ALL=C before).
    The above fixes copy/paste to most terminal apps, but some still misbehave. For example, I had to add this to ~/.emacs:
    ;; Set language environment for MULE.
    (set−language−environment 'UTF−8)
    ;; My customization for text modes
    (defun my−text−mode−hook ()
    (auto−fill−mode 1)
    (show−paren−mode t)
    (activate−input−method 'rfc1345) ; Good input method for UTF−8
    (add−hook 'text−mode−hook 'my−text−mode−hook)
    More examples are given on page 3 of the pdf.
    Last edited by slyson (2009-06-16 15:26:31)

  • [SOLVED] Conky Not Displaying Unicode Characters Correctly

    I have some music that requires unicode characters in order to be displayed properly. The artist name is Röyksopp, but it is displayed like this:
    http://i.imgur.com/rRBDxZn.png
    Does anyone know how to either make it display correctly (Röyksopp), or at least remove the umlauts to make it almost correct(Royksopp)? I've set the locale, so it displays correctly in both i3bar and urxvt, but it had no effect on conky.
    EDIT: Here is my conkyrc.
    Last edited by ProfessorProcrastinator (2014-05-14 22:50:16)

    x33a wrote:Try a different font.
    I know that this font works because I tried it in urxvt and it displayed correctly.
    Also, I tried "override_utf8_locale yes" and it still was incorrect.

  • ICloud Photostream pics not displaying

    Okay,  so I've successfully converted my iPhoto library, made the Photos library my "system" library and activated only "My Photo Stream" in Photo's Preferences. On my iPhone, I have 336 pics in my Photo Stream. Photos says 252 and is not displaying many pics. I can click on them and open the blank spaces but they are not being displayed. ??? See screen shot.
    I've disabled/re-enabled iCloud Photo Stream in Photos and rebooted (re-logged in to icloud) but no joy. Anyone else experiencing this?  
    The version of Photos says it all.... 1.0. We're starting all over again folks...

    Hi jgraffunder,
    So the switch you are referring to is:
    If so, then the fact that you have iCloud set up on your Mac implies that you may need to update iPhoto. What version of iPhoto are you running?
    Cheers,
    GB

  • Some of the album artwork on my iPod is wrong. I've tried to change it many times but it doesn't change. I've decided that the easiest thing to do now would be to NOT display album artwork on my iPod. How do I set my iPod to NOT display album art?

    Some of the album artwork on my iPod is wrong. I've tried to change it many times but it doesn't change. I've decided that the easiest thing to do now would be to NOT display album artwork on my iPod. How do I set my iPod to NOT display album art? I've checked the User manual and that doesn't help.

    Why don't you, instead of taking time to do that, just backup, and then restore your iPod?
    Just a suggestion..

  • SOLVED:Tabs is not displayed correctly?

    Gang,
    I have a very strange problem which I can't really understand why APEX behaves it way it does (well I've probably told APEX to do so, but I can't understand why).
    I have 3 Parent Tabs:
    T_PAGE1
    T_REPORTS
    T_ADMIN
    All of the Parent Tabs have one or more Standard Tabs associated to them. And each Standard Tab is associated with one or more pages.
    But the strange thing is that I have associated page 3 with a std tab which then belongs to the T_REPORTS Parent Tab. If I run the page the Parent Tabs are not displayed at all, but the Standard Tab is (and also the breadcrumb). I did assign the tabs to the page when I created the page and I have retried the same thing a couple of times with the same result.
    And if I run any other page in my application I can see the Parent Tabs and if I click on the Parent Tab (T_REPORTS) the Parent Tabs disappears and I only see the std tab.
    Any ideas or is this completely confusing for you as it is for me ???
    Cheers,
    Andy
    Message was edited by: A Tael
    I should really make myself a martini and stop thinking that I can build APEX apps. The issue was that I had assigned my T_REPORTS Tab with the wrong Parent Tab. Doh!

    Glad your first experience on the Arch forums was successful. Don't forget to edit the thread title to make it say "Solved".

  • Safari 5.7.1 does not display PDFs - how do I solve this problem?

    PDFs will not display in Safari 5.7.1.   When I click on a PDF on a webpage all I get is a dark gray screen.   How do I solve this problem?

    Back up all data.
    Quit Safari. In the Finder, select Go ▹ Go to Folder from the menu bar, or press the key combination shift-command-G. Copy the line of text below into the box that opens, and press return:
    /Library/Internet Plug-ins
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then launch Safari and test.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Error Message:"Cannot find or create the font 'WP-MathA'. Some characters may not display or print correctly."  Who can help me solve this problem?

    Some of the pdf files I work with (receive) come up with a comment: “Cannot find or create the font ‘WP-MathA’. Some characters may not display or print correctly.”  Who can help me solve this problem?
    Thank you in advance for  your time.
    Marlen

    Hello Anubha,
    I am having a similar problem on my machine.  I was using Word 2008 and I created a PDF inside Word.
    I am opening the file on the system itself and I am running Windows 8.1.  I am using Version 11 of Reader.
    When the PDF I created (my resume) attempts to open, it says:  cannot find or create the file Times, Bold.  Some characters may not display or print correctly. 
    However, the entire Reader keeps freezing and will not allow me to open or test print the document.  Also, it is not displaying any of the Bold Times New Roman Print.  Can you please help?  Thanks.

  • How many books do I have on my itunes? Since I updated it´s not displayed anymore...

    How many books do I have on my itunes? Since I updated it´s not displayed anymore...

    View > Show Status Bar puts the grey bar back at the bottom of iTunes the info is displayed there

  • Many pages not displayed correctly in non-IE browsers

    Some pages, especially those part of the PDK, are not displayed in non-IE browsers. An example is:
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/plsql/doc/sdk22pkg.htm
    Viewing the source shows a very badly formatted IMG SRC tag (alt="Oracle9iAS Portal Developer Kit"). Removing this tag fixes the pages.
    Could you please adjust these pages ASAP so they are again also viewable according to the Rehabilitation Act?

    There is enhancement filed about this issue that you are experiencing. Also, there are a new set of PL/SQL API documentation that is automatically generated and we are checking to see if those have the same issue.
    Thanks,
    Sue Vickers

  • Synced bookmarks can be searched for and found but many are not displayed on the complete scrollable bookmarks list.

    How odd. I've a somewhat complex bookmarks menu hierarchy, perhaps two dozen folders each containing between five and fifty bookmarks as well as a sub-folder or two. All of this is synced and displayed correctly with the bookmarks tab in the app, except for some of the more recent bookmarks that not organized into folders, and are floating inside the bookmarks menu. Of thirty or so, only five appear. Yet, when I search for them within the app they are found, including several bookmarks made today. These are bookmarks contained in the bookmarks menu but not in any particular folders. Clearly they are synced, yet the entire contents of the bookmarks menu are not displayed correctly in the app. Syncing otherwise seems swift. I've less than 600 bookmarks in total. I seek not to search for specific bookmarks but to browse my entire collection, so you can sense my frustration. I'd call this a bug. Any thoughts? Thanks!

    No I didn't change anything deep beneath the hood. My problem didn't apply to the URL, but to the name of the link or bookmark header or whatever you would like to call it. (When hitting Ctrl + D there is a Name field). I only got ???????? instead of chinese characters in the name. Also for e.g. www.cntv.cn ...but maybe all China is not in the whitelist either. ;-) But anyway, this was not the real problem for me.
    Apparently I was wrong as after a reboot of the computer it worked. The solution seemed to be to add Chinese to the language list. I don't know why it was not enough to restart Firefox?
    Now I only have problems to show chinese characters in the name field of my external link manager... But I guess it is not an issue for Mozilla.

  • [solved] Emacs in X windows - Characters are not displayed

    Emacs works fine when run with -nw.
    But when I run it without, in X Windows, emacs does not display characters properly. It just displays those whites boxes with the black borders. The ones you see when you're trying to view characters for which you don't have the right font.
    I installed XEmacs, and that worked fine. I don't understand why the normal Emacs doesn't.
    I'll post a screenshot when I'm home from work, but you should get the gist of the problem.
    Last edited by Weeks (2007-05-05 23:18:59)

    Yeah I figured that out when I got back home. It was my own fault for running emacs from Run Program in xfce instead of from the Terminal.
    However, I've installed that package along with the 75dpi one and it still doesn't work. I even ran fc-cache again just to be sure. Weird.
    The error is "Warning: Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct" So perhaps it's a fontconfig problem. Both fontconfig and freetype2 as up-to-date. Hmm.
    [EDIT] I restared X and everything worked. Thanks. I've updated the wiki with the information. I'll send a diff to the maintainer at some point; the PKGBUILD should really tell the user that he/she needs to install these fonts if using X windows
    Last edited by Weeks (2007-05-05 23:32:05)

Maybe you are looking for

  • Delete Rows from T1 which are Not in T2

    Hi I've 2 Tables like below T1 N1 N2 2 11 2 22 3 33 8 44 8 88 T2 N1 N2 2 22 8 88 If I Run Delete query, I must delete Rows from T1 which are Not in T2 For example, I must delete Rows 1,3,4 from T1 So how to write that delete query? Please advice

  • Tax amount in a parked FI document

    Hi Experts When we park a incoming invoice (T Code FBV0), credit the vendor, debit a GL and debit a tax account (by selecting a tax code and marking Calculate Tax). Which table captures this tax amount in a parked document. I checked the table VBSET

  • Bridge CS6 Script to Find Multiple Images in Multiple folders.

    Is it possible to have a script to find multiple images within multiple folders that is on a external hard drive? For instances I have a external hard drive assuming it's for a library of pictures. Inside this hard drive has folders named as below 1-

  • Missing albums and ibooks

    Recently, after opening iphoto 6 I found all of my albums, books, and folders missing. The only thing I can think of that would affect those would be the recent auto update iphoto asked me to install. I can create new albums and import files as usual

  • Compatible with Mac

    I own a Mac and need to purchase an Acrobat program for teaching purposes. I recently purchased the Acrobat Standard XI and quickly discovered that it is not compatible with Mac. There is very little information online to guide customers as to which