Solved

How to create Raster font (.FON)

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

Independent Software Vendors: 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

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…

734 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