Jump to content

Full UTF-8 Console Font without X environment?


Recommended Posts

Posted

I've got a setup I'm pretty happy with on my laptop now for when I need to use Linux for something (it's based on Arch)

 

I've not bothered with X because the things I use Linux for don't require it.

 

However, one problem I'm having is that I've been unable to find a console font or config that will enable full UTF-8 support.

 

Does anybody know how to go about this?

 

I've already got my locale settings to the UTF-8 variant, I've manually enabled UTF-8 in both Vim and Tmux but this has made no difference.

 

A workaround is to boot a terminal emulator in X full screen, at which point UTF-8 works fine, but I'd rather do it without X if possible.

Posted
So where's the problem? Are you hitting the limits of standard VGA perhaps?

 

Lots of UTF-8 characters are simply missing, even though they should theoretically be available (they're visible in the preview produced by 'showconsolefont')

 

For that reason, I suspect the problem lies with Vim and/or Tmux - probably not correctly reading the mapping.

 

May just have to use the X workaround - it's not that my laptop doesn't have the resources, I just wanted to try to get this working out of interest really.

Posted (edited)

did you set your .vimrc up correctly? Mine looks like this

 

set enc=utf-8
set fileencoding=utf-8
set fileencodings=ucs-bom,utf8,prc
set guifont=Monaco:h11
set guifontwide=NSimsun:h12

 

Also what's your 'locale' set to?

Edited by Geoff
  • Thanks 1
Posted

Locale is set to en-GB.UTF-8

 

Also tried US just in case but made no difference.

 

It's just bugging me that I can see characters in showconsolefont that don't display in Vim.

 

It's not a big deal, they're characters I'm unlikely to ever need, it was more a learning opportunity but I think I've hit a dead end.

 

Will use X workaround and stop fussing for now, thanks for your help :)

Posted
Anything past two byte characters is unlikely to work due to afore mentioned limits of the standard VGA frame buffer. You could drop your colour depth down to 8bit, but that would defiantly break even more console applications (anything based on ncurses for example) than you have already broken using a UTF8 console font.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...