# Setting consolefont for text output

**URL:** <https://www.ruby-forum.com/t/setting-consolefont-for-text-output/107717>\
**Category:** Ruby\
**Created:** [June 25, 2007, 6:17pm UTC](https://www.ruby-forum.com/t/setting-consolefont-for-text-output/107717 "2007-06-25T18:17:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anansi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9fc348/32.png) [@anansi](https://www.ruby-forum.com/u/anansi)\
**Post date:** [June 25, 2007, 6:17pm UTC](https://www.ruby-forum.com/t/setting-consolefont-for-text-output/107717/1 "2007-06-25T18:17:02Z")

</div>

Hi,  
I was wondering if there is a way in linux to output text in cp437 with  
my ruby script. Is there at all a way to influence the font within ruby  
in a console?

–  
greets

```
                 one must still have chaos in oneself to be able to

```

give birth to a dancing star

---

<div class="post-metadata">

**Author:** ![anansi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9fc348/32.png) [@anansi](https://www.ruby-forum.com/u/anansi)\
**Post date:** [June 26, 2007, 1:02pm UTC](https://www.ruby-forum.com/t/setting-consolefont-for-text-output/107717/2 "2007-06-26T13:02:13Z")

</div>

On 25/06/07, anansi [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,  
> I was wondering if there is a way in linux to output text in cp437 with  
> my ruby script. Is there at all a way to influence the font within ruby  
> in a console?

The better approach would be to convert the cp437 text to the encoding  
of your console.  
Given an utf-8 terminal this should not be a problem for most  
encodings including cp437.  
There are utf-8 X11 terminal emulators and utf8 terminal emulators for  
the Linux framebuffer console. The functionality of the Linux console  
when dealing with various encodings is limited at best.

Thanks

Michal
