LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-25-2015, 05:55 AM   #1
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,747

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
Stand alone rasterizer?


To rasterize fonts I use FontForge.

For instance I download a font like DejaVuSansMono in SFD or TTF format, then:
Element => Bitmap Strikes available (select a size)
Element => Regenerate Bitmap Glyphs (selected or all glyphs)
File => Generate Fonts => BDF format
(further conversion to BGF or PSF format with another tool).

So far, so good.

But what if I want to do the rasterization "in the fly" in a shell script, e.g. to scale the bitmap according to the display's dimensions in pixels?

I tried to find a stand-alone rasterizer usable on the command line, unsuccessfully so far.

Any clue appreciated.
 
Old 08-25-2015, 08:55 AM   #2
ml4711
Member
 
Registered: Aug 2012
Location: Ryomgård, Danmark
Distribution: Slackware64
Posts: 146

Rep: Reputation: 101Reputation: 101
This one - otf2bdf?

https://www.math.nmsu.edu/~mleisher/Software/otf2bdf

Cheers
 
1 members found this post helpful.
Old 08-25-2015, 12:06 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,747

Original Poster
Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
That worked, thanks.

Meanwhile I just discovered that FontForge ships with its own scripting language, with which I can most probably make the conversion in batch mode and will try that too.
 
Old 08-25-2015, 03:27 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,747

Original Poster
Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
The advantage of a standalone application is that doesn't need to install FontForge, just to do the conversion outline => bitmap.

So I put in my todo list submitting a SlackBuild for otf2bdf.

Marking this thread as [SOLVED], thanks again ml4711.

Last edited by Didier Spaier; 08-25-2015 at 03:28 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what does etc stand for? aru_04 Linux - General 22 06-24-2012 10:00 AM
what does the T in T1 stand for? jmral23 Linux - Networking 7 11-23-2009 08:22 AM
Compiz error: Software Rasterizer in use robertneville777 Linux - Software 4 10-02-2009 12:52 AM
What Does ES or AS Stand For? Canis Polaris Red Hat 2 05-16-2007 12:05 PM
what does rc.d stand for? german Linux - General 4 11-13-2003 08:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration