Solved

how do you build fonts

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

Technology Partners: 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

Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
There is a lot to be said for protecting yourself and your accounts with 2 factor authentication.  I found to my own chagrin, that there is a big downside as well.
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…
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…

724 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