Font::FNT icon

Font::FNT For Linux

2.9/5 21
Perl Artistic License    

Font::FNT allows you to load, manipulate and save Windows raster fonts.. #Raster fonts  #Windows fonts  #Perl module  #Windows  #Raster  #Fonts  

Description

Free Download

Font::FNT allows you to load, manipulate and save Windows raster fonts.

use Font::FNT();

my $fnt = Font::FNT->load('test.fnt');

$fnt->save_yaml('test.yml');

# scite test.yml

$fnt = Font::FNT->load_yaml('test.yml');

$fnt->save_pbm('test.pbm');

$fnt->save('test.fnt');

This module provides basic load, manipulate and save functionality for Windows 3.00 raster fonts (.FNT files).

load( $filename )

Loads a .FNT file. This is a constructor method and returns an Font::FNT instance.

save_yaml( $filename )

Saves a Font::FNT instance into a notepadable format (YAML). You can use your prefered text editor to manipulate that serialized Font::FNT instance.

load_yaml( $filename )

Loads a YAML file (which should contain a serialized Font::FNT instance). This is a constructor method and returns an Font::FNT instance.

save_pbm( $filename )

Saves a Font::FNT instance as portable bitmap (pbm) file. Yo can use this for preview purposes.

save( $filename )

Saves a Font::FNT instance as .FNT file.

The test directory contains a serialized Font::FNT instance (1252_13x8_OEM.yml) that can be used to install a nice Console (Terminal) font - at least on a Windows NT 4.0 box. Other Windows versions may require other steps.

The font is similar to the bold BorlandTE font (BORTE.FON) or Raize font.

Let's create the .FNT file first:

use Font::FNT(); Font::FNT->load_yaml('t/1252_13x8_OEM.yml')->save('t/1252_13x8_OEM.fnt'); Normally, various .FNT files for different sizes and weights are packaged together as resources in a Windows DLL (.FON file). BTW: most .FON files are good old Windows 3.1 DLLs. For our purpose, the .FNT file is o.k.

Next, add something like

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionFonts] "1252 13x8 OEM"="1252_13x8_OEM.fnt"

to your registry, copy the font by hand

copy t1252_13x8_OEM.fnt %SystemRoot%Fonts

and reboot your system.

If you don't need control about your registry entries, then you can simply drag'n drop t/1252_13x8_OEM.fnt into the Fonts Control Panel Applet.

Now, if you open the Console properties dialog or the Console Control Panel Applet, go to the font tab and select 'Raster Fonts', you should see a new entry in the 'Size' listbox:

8 x 13

Configuring the font in the Control Panel results in the following registry entries:

[HKEY_CURRENT_USERConsole] "FaceName"="Terminal" "FontSize"=dword:000d0008

Finally, you should change the Console codepage:

mode con cp select=1252

or

chcp 1252

To change the codepage permanently, add the following to your registry: [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlNlsCodePage] "OEMCP"="1252"

System requirements

  • Perl

Font::FNT 0.02

add to watchlist add to download basket send us an update REPORT
  runs on:
Linux
  filename:
Font-FNT-0.02.tar.gz
  main category:
Programming
  developer:
  visit homepage

Context Menu Manager 3.3.3.1

Customize Windows’ original right-click context menu using this free, portable and open-source utility meant to enhance your workflow
Context Menu Manager

Windows Sandbox Launcher 1.0.0

Set up the Windows Sandbox parameters to your specific requirements, with this dedicated launcher that features advanced parametrization
Windows Sandbox Launcher

ShareX 16.0.1

Capture your screen, create GIFs, and record videos through this versatile solution that includes various other amenities: an OCR scanner, image uploader, URL shortener, and much more
ShareX

7-Zip 23.01 / 24.04 Beta

An intuitive application with a very good compression ratio that can help you not only create and extract archives, but also test them for errors
7-Zip

Bitdefender Antivirus Free 27.0.35.146

Feather-light and free antivirus solution from renowned developer that keeps the PC protected at all times from malware without requiring user configuration
Bitdefender Antivirus Free

Microsoft Teams 24060.3102.2733.5911 Home / 1.7.00.7956 Work

Effortlessly chat, collaborate on projects, and transfer files within a business-like environment by employing this Microsoft-vetted application
Microsoft Teams

Zoom Client 6.0.3.37634

The official desktop client for Zoom, the popular video conferencing and collaboration tool used by millions of people worldwide
Zoom Client

calibre 7.9.0

Effortlessly keep your e-book library thoroughly organized with the help of the numerous features offered by this efficient and capable manager
calibre

IrfanView 4.67

With support for a long list of plugins, this minimalistic utility helps you view images, as well as edit and convert them using a built-in batch mode
IrfanView

4k Video Downloader 1.5.3.0080 Plus / 4.30.0.5655

Export your favorite YouTube videos and playlists with this intuitive, lightweight program, built to facilitate downloading clips from the popular website
4k Video Downloader

% discount
calibre
  • calibre
  • IrfanView
  • 4k Video Downloader
  • Context Menu Manager
  • Windows Sandbox Launcher
  • ShareX
  • 7-Zip
  • Bitdefender Antivirus Free
  • Microsoft Teams
  • Zoom Client
essentials


Load comments
This enables Disqus, Inc. to process some of your data. Disqus privacy policy