Solved

how do you build fonts

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

IT certifications are a concrete representation of continual learning on the part of the candidate.  Continual learning is necessary for the long term success of an IT professional, but are IT certifications the right path for you?
This article explains the steps required to use the default Photos screensaver to display branding/corporate images
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

808 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