Solved

how do you build fonts

Posted on 1998-12-08
5
246 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

Industry Leaders: 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 was initially published on Monitis Blog, you can read it here . When it comes to deciding which approach to website performance monitoring is best for your business, unfortunately, like so many options in life . . . it depends. In t…
Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
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…

733 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