Since MURAOKA Taro (KoRoN) has changed his website and no longer having a valid link to his bdf2ttf, I forked and enhanced bdf2ttf for meeting my own needs:
- added `-g' switch for multi-width (proportional) fonts
- added `-f' switch for generating TTF which has Unicode code points larger than U+FFFF
Download: bdf2ttf-2.1.zip (win32 binary+source)
Showing posts with label font. Show all posts
Showing posts with label font. Show all posts
Sunday, December 21, 2014
Friday, September 12, 2014
bdfbmp-tools
I made a little change so bmp2bdf with respect characters' DWIDTH.
and they are now compiled with TinyCC, so they are lots smaller than original one. :)
Download: bdfbmp-tools.zip (binary + source)
and they are now compiled with TinyCC, so they are lots smaller than original one. :)
Download: bdfbmp-tools.zip (binary + source)
Monday, August 11, 2014
Japanese ASCII Art custom font
I modified some Japanese ASCII Art custom fonts from Free fonts.
私は二つの日本語AA対応フォントを改修してみた。
Droid Sans Japanese AA化に調整してみた。
Droid Sans Japanese AA.7z
Droid Sans Legacyの英数字、記号とDroid Sans Japaneseの漢字を合せて、そしてAA化。

Noto Sans Japanese と Monapo を合せてみた。
MonapoNoto.7z
Monapoの英数字、記号とNoto Japaneseを合せた。

モナーフォント,monafont,IPAモナーフォント,AA用日本語フォント,ipa_mona
私は二つの日本語AA対応フォントを改修してみた。
Droid Sans Japanese AA化に調整してみた。
Droid Sans Japanese AA.7z
Droid Sans Legacyの英数字、記号とDroid Sans Japaneseの漢字を合せて、そしてAA化。

Noto Sans Japanese と Monapo を合せてみた。
MonapoNoto.7z
Monapoの英数字、記号とNoto Japaneseを合せた。

モナーフォント,monafont,IPAモナーフォント,AA用日本語フォント,ipa_mona
Tuesday, March 4, 2014
XNU kernel built-in ISO font
After reading Ka-Ping Yee ISO Latin-1 Font in linux kernel, I converted the font to BDF for use.
But instead of using the patch he provided, I did conversion in my usual way:
- Add stub in iso_font.c so it writes font data binary array to binary file when runs.
- Use my raw2bdf-c_flip.php php CLI script from font2bdf-tools to convert raw binary font to BDF (The font data stored in iso_font.c is in flipped form)
- ???
- profit!
Download: xnu_iso_font.7z
And there is other converted font in BDF or TrueType form in my Font Drop.
But instead of using the patch he provided, I did conversion in my usual way:
- Add stub in iso_font.c so it writes font data binary array to binary file when runs.
- Use my raw2bdf-c_flip.php php CLI script from font2bdf-tools to convert raw binary font to BDF (The font data stored in iso_font.c is in flipped form)
- ???
- profit!
Download: xnu_iso_font.7z
And there is other converted font in BDF or TrueType form in my Font Drop.
Thursday, February 13, 2014
WinTTX 2.4 (behdad forked)
Getting TTX 2.4 behdad-forked git rev snapshot compiled with Python 2.7.3(MinGW build) py2exe 0.6.9.
WinTTX-2.4-git-behdad-20140317-11580c55bb.7z
modified setup.py included.
Updated:
[20140317]: update snapshot to git rev 11580c55bb - Add isUnicode() and isSymbol() to cmap subtables
[20140224]:
- update snapshot to git rev 319643ade2 - Fix up regression in promoting lookups to extensions
- uncompressed pyd DLLs since they can't be loaded correctly when compressed, may just throws "Fatal Python error: PyThreadState_Get: no current thread" or simply cannot import modules
[20140211]:
- update snapshot to git rev 5080331251
- UPX compressed libpython2.7.dll and all pyd DLLs except zlib.pyd (py2exe run.exe loader wants zlib.pyd in uncompressed form)
- added ttx.html converted from share/man/man1/ttx.1 with
WinTTX-2.4-git-behdad-20140317-11580c55bb.7z
modified setup.py included.
Updated:
[20140317]: update snapshot to git rev 11580c55bb - Add isUnicode() and isSymbol() to cmap subtables
[20140224]:
- update snapshot to git rev 319643ade2 - Fix up regression in promoting lookups to extensions
- uncompressed pyd DLLs since they can't be loaded correctly when compressed, may just throws "Fatal Python error: PyThreadState_Get: no current thread" or simply cannot import modules
[20140211]:
- update snapshot to git rev 5080331251
- UPX compressed libpython2.7.dll and all pyd DLLs except zlib.pyd (py2exe run.exe loader wants zlib.pyd in uncompressed form)
- added ttx.html converted from share/man/man1/ttx.1 with
groff -mandoc -Thtml < ttx.1 > ttx.html
Tuesday, December 31, 2013
FTView windows-ease build
Since newer versions of FTView has left column which I don't like, I make modifications based on a intermediate version between 2.4.10 and 2.4.11.
Changes:
- really setting windows title
- fixed [F10] key handling
- tries to find valid point number for bitmap fonts upon startup and changing font size
- new switch: -M and -W for loading UTF8-noBOM text file for Text demo(-M) and Waterfall demo(-W)
- make pt argument optional for single font display, easing the use of dropping font file to ftview.exe
- changing step to 2pt in waterfall demo
- no more console window, using Message Box for error messages

Download: Source / Binary
Changelog:
[20141221] Update binary with freetype2 git rev 06842c7b4 libaray
Changes:
- really setting windows title
- fixed [F10] key handling
- tries to find valid point number for bitmap fonts upon startup and changing font size
- new switch: -M
- make pt argument optional for single font display, easing the use of dropping font file to ftview.exe
- changing step to 2pt in waterfall demo
- no more console window, using Message Box for error messages
Download: Source / Binary
Changelog:
[20141221] Update binary with freetype2 git rev 06842c7b4 libaray
Saturday, December 14, 2013
breakcpi for win32/linux
I found the there is no win32 or linux version of cpi2fnt or breakcpi, and there is no tool in psftools for extracting FNT raw font from CPI files.
I hacked READCPI(internet archive link) to make it work in win32 and linux.
svn repository: https://github.com/roytam1/rtoss/tree/master/breakcpi/
win32 binary + source: breakcpi.zip
for converting raw binary fonts to BDF fonts, please try my font2bdf-tools. (No manual provided, please read php source for usage)
I hacked READCPI(internet archive link) to make it work in win32 and linux.
svn repository: https://github.com/roytam1/rtoss/tree/master/breakcpi/
win32 binary + source: breakcpi.zip
for converting raw binary fonts to BDF fonts, please try my font2bdf-tools. (No manual provided, please read php source for usage)
Sunday, December 8, 2013
xmbefed-4.7 cygwin binary
I compiled xmbefed-4.7 and lesstif-0.95.2 in cygwin 1.7.
Binary(7z archive)
You need a X11 server(for example Xming/VcXserv) and set DISPLAY environment variable to run xmbefed, like fontforge and such.
P.S.: You may need installing X11 fonts as well.
Minimal X11 fonts for xmbdfed
Binary(7z archive)
You need a X11 server(for example Xming/VcXserv) and set DISPLAY environment variable to run xmbefed, like fontforge and such.
set DISPLAY=:0 xmbdfed
P.S.: You may need installing X11 fonts as well.
Minimal X11 fonts for xmbdfed
Wednesday, August 5, 2009
WinTTX 2.2
Getting TTX 2.2 svn trunk r568 compiled with Python 2.6 py2exe 0.6.9.
WinTTX-2.2-svn-trunk-r568.7z
with modified setup.py:
WinTTX-2.2-svn-trunk-r568.7z
with modified setup.py:
#! /usr/bin/env python
import psyco
psyco.full()
import os, sys
from distutils.core import setup, Extension
from distutils.command.build_ext import build_ext
try:
# load py2exe distutils extension, if available
import py2exe
except ImportError:
pass
try:
import numpy
except ImportError:
print "*** Warning: FontTools needs the numpy library, see:"
print " http://numpy.scipy.org/"
try:
import xml.parsers.expat
except ImportError:
print "*** Warning: FontTools needs PyXML, see:"
print " http://sourceforge.net/projects/pyxml/"
class build_ext_optional(build_ext):
"""build_ext command which doesn't abort when it fails."""
def build_extension(self, ext):
# Skip extensions which cannot be built
try:
build_ext.build_extension(self, ext)
except:
self.announce(
'*** WARNING: Building of extension "%s" '
'failed: %s' %
(ext.name, sys.exc_info()[1]))
if sys.version_info > (2, 3, 0, 'alpha', 1):
# Trove classifiers for PyPI
classifiers = {"classifiers": [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Multimedia :: Graphics",
"Topic :: Multimedia :: Graphics :: Graphics Conversion",
]}
else:
classifiers = {}
long_description = """\
FontTools/TTX is a library to manipulate font files from Python.
It supports reading and writing of TrueType/OpenType fonts, reading
and writing of AFM files, reading (and partially writing) of PS Type 1
fonts. The package also contains a tool called "TTX" which converts
TrueType/OpenType fonts to and from an XML-based format.
"""
py2exe_options = dict(
excludes=['_ssl', # Exclude _ssl
'_hashlib',"bz2", "_ctypes",'_socket',
'doctest',"pywin", "pywin.debugger", "pywin.debugger.dbgcon",
"pywin.dialogs", "pywin.dialogs.list",
"Tkconstants","Tkinter","tcl",
"compiler","email","ctypes","logging","unicodedata",
"pydoc_topics","pydoc","httplib","cookielib","cookielib","urllib",
'pickle', 'calendar'], # Exclude standard library
dll_excludes=['msvcr71.dll'], # Exclude msvcr71
compressed=1,
optimize=1,
bundle_files=2
)
setup(
name = "fonttools",
version = "2.2",
description = "Tools to manipulate font files",
author = "Just van Rossum",
author_email = "just@letterror.com",
maintainer = "Just van Rossum",
maintainer_email = "just@letterror.com",
url = "http://fonttools.sourceforge.net/",
license = "OpenSource, BSD-style",
platforms = ["Any"],
long_description = long_description,
packages = [
"",
"fontTools",
"fontTools.encodings",
"fontTools.misc",
"fontTools.pens",
"fontTools.ttLib",
"fontTools.ttLib.tables",
"fontTools.ttLib.test",
],
package_dir = {'': 'Lib'},
extra_path = 'FontTools',
ext_modules = [
Extension(
"fontTools.misc.eexecOp",
["Src/eexecOp/eexecOpmodule.c"],
include_dirs=[],
define_macros=[],
library_dirs=[],
libraries=[],
)
],
console=[{'script': 'Tools/ttx',
'other_resources': [(u"VERSIONTAG",1,'2.2')],
'icon_resources': [(1,'Windows/ttx.ico')]
}],
options={'py2exe': py2exe_options},
cmdclass = {"build_ext": build_ext_optional},
data_files = [('man/man1', ["Doc/ttx.1"])],
zipfile = None,
**classifiers
)
Subscribe to:
Posts (Atom)