[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to create Raster font (.FON)

Posted on 1997-05-21
1
Medium Priority
?
485 Views
Last Modified: 2013-12-03
I'm looking for a c, c++ source to create a .fon file. (Raster font file). The font i created crashs when i try to install it in Win 3.1/95.
The name of my font is displayed Ok in the dialog box, but i can't go further. (Memory fault ...). I can't use it in any application program either.
My source is composed of two functions : LibMain and WEP returning the value 1 , and the fonts ressources. Nothing else. After compilation of this source, i rename the .DLL -> .FON
0
Comment
Question by:lvardon
1 Comment
 
LVL 2

Accepted Solution

by:
r parkinson earned 300 total points
ID: 1397543
When you create a .FON file it must be a resource only DLL, i.e. it must have NO code at all.  I think that the only way of doing this is to create an Assembler stub to link the resources to, this would look somthing like this :

.xlist
include cmacros.inc
.list
sBegin CODE
; Create WEP, which does nothing (required to avoid the
; 'NO SEGMENT' warning
cProc WEP,<FAR, PASCAL, PUBLIC>,<si,di>
    parmW EntryCode
cBegin WEP
cEnd WEP
sEND   CODE
end

Compile this with MASM and link to your font resources.

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question