flat assembler
Message board for the users of flat assembler.

Index > IDE Development > How to add/change custom characters in font for FASMW ?

Author
Thread Post new topic Reply to topic
shutdownall



Joined: 02 Apr 2010
Posts: 517
Location: Munich
shutdownall 24 Oct 2013, 15:59
I get crazy with this stuff and need help.
I want to add custom chars or change chars in a TTF file.
I experimented with FASMW but found out that it can not handle proportional fonts like arial.

Okay - this wouldn't be the big problem I could use a customized "Courier New" font with some special graphic characters which do not exist in standard charsets.

But when I change the font with FontForge my changes are made in all windows applications - except FASMW (IDE/editor).

I changed the character exclamation mark to a simple point.
If I double click the TTF file, this change is seen on screen.
If I use Courier New in Open Office, this change is seen on screen.

If I use FAMSW.EXE with Courier New it shows the old exclamation mark.

Hmm - what is going on there ?

Help appreciated from experienced users with fonts.

If I copy the font file to C:\Windows\Fonts the font seems to be restored. If I double click on the font file, the exclamation mark seems to be restored. But how can OpenOffice display my changes for this character while FASMW cannot ???


Description: Four different applications with partly change and partly original content (marked red/lightred)
Filesize: 314.4 KB
Viewed: 5656 Time(s)

fontproblem.jpg


Post 24 Oct 2013, 15:59
View user's profile Send private message Send e-mail Reply with quote
shutdownall



Joined: 02 Apr 2010
Posts: 517
Location: Munich
shutdownall 25 Oct 2013, 23:07
I think I finally found the solution.
The font name (lpszFace) may not be mixed up with the pitch (fdwPitchAndFamily) like FIXED_PITCH or VARIABLE_PITCH.

The following example worked in FASMs example minipad:

Code:
 invoke  CreateFont,0,0,0,0,0,FALSE,FALSE,FALSE,ANSI_CHARSET,OUT_RASTER_PRECIS,CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,FF_DONTCARE,editname

editname db 'Consolas',0 
    
Post 25 Oct 2013, 23:07
View user's profile Send private message Send e-mail Reply with quote
shutdownall



Joined: 02 Apr 2010
Posts: 517
Location: Munich
shutdownall 26 Oct 2013, 14:58
There is some more issue why I couldn't modify the desired font "Courier New" and update this font. Some fonts (like this) are digitally signed (which is stated when double click for the view of font). Shocked

So I used another unsigned (monospaced) font to modify.

I am surprised, that OpenOffice can use the unsigned font. Razz
Post 26 Oct 2013, 14:58
View user's profile Send private message Send e-mail Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.