Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to create Raster font (.FON)

Posted on 1997-05-21
1
Medium Priority
?
479 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 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…

618 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