Solved

how do you build fonts

Posted on 1998-12-08
5
243 Views
Last Modified: 2013-12-02
I woul like to know how to build and display fonts on the screen.
0
Comment
Question by:Eaddy
5 Comments
 
LVL 1

Author Comment

by:Eaddy
ID: 1216389
need some help here
0
 
LVL 27

Expert Comment

by:BigRat
ID: 1216390
May I ask if DOS or Windows?
0
 
LVL 2

Accepted Solution

by:
omsec earned 10 total points
ID: 1216391
I think you mean the Vector Fonts in the CHR-Files shipping with Turbo/Borland Pascal as part of the Borland Graphics Interface (BGI) that can be used by the GRAPH-Unit in your DOS-Programs.

By saying "build Fonts" I dunno exactly what you mean... Just to mention it, there is a freeware editor from Borland to build/design Vector Fonts in the CHR - Format. You may get the URL to download this DOS-Application if you want.
If "build Fonts" in means to link BGI/CHR Files directly into your EXE-File, I could give you an example on how to do that too.

The use of standard vector fonts in Borland/Turbo Pascal is quite easy :

Program Test;

Uses
  Crt, Graph;

Var
  GraphMode,
  GraphDriver,
  ErrCode : Integer;

Begin
  GraphDriver := Detect;
  InitGraph(GraphDriver, GraphMode, 'DIR TO BGI/CHR-FILES');
  ErrCode := GraphResult;
  If ErrCode <> 0 Then
    { some error here }
  SetTextStyle(TriplexFont, HorizDir, 4);
  OutTextXY(100, 100, 'SIMPLE TEXT in graphics MODE');
  ReadLn;
  CloseGraph;
End.

There are also very advanced units (written in Pascal/Assembler) to use "real Windows" True Type Fonts (TTF-Files) in Turbo/Borland Pascal Programs under DOS in SVGA/VESA Modes.

Hoping this points you in the right Direction ;)
 
0
 
LVL 1

Author Comment

by:Eaddy
ID: 1216392
it is in dos
0
 
LVL 1

Expert Comment

by:quanghoc
ID: 1216393
It is very easy. I have two ways:
 + Vector Font: If you like to build Vector Font with .CHR format. You can send to me an Email, I will send to you a program building this font format.
 + Bitmap Font: Look at this matrix:
  00110
  01110
  00110
  00110       => That is character "1"
  00110
  01111
 You can use this way to build binary font. If you want a source, please send me your Email because it is too much for me to explain here.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Fine Tune your automatic Updates for Ubuntu / Debian
When we talk about DevOps toolchains, I sometimes wonder how many people really get what we’re talking about. I don’t know if it’s just semantics or tone or something else, but sometimes I think it just sounds like buzzword sausage. So it’s always …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
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…

910 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