Solved

How to create Raster font (.FON)

Posted on 1997-05-21
1
463 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 100 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now