Solved

How to create Raster font (.FON)

Posted on 1997-05-21
1
471 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
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…
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…

705 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