Editing NSX (QFont)

Jump to: navigation, search

Warning: You are not logged in.

Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
[[NSX|NSX scripts]] that holds parameters for [[NetherMenu]] font draw module.
+
= Introduction =
  
Example QFONT file:
+
QFONT files are [[NSX|NSX scripts]] that holds parameters for [[NetherMenu]] font draw module.
 +
 
 +
Example of .QFONT file contents:
  
 
  ''[qfont]''
 
  ''[qfont]''
Line 17: Line 19:
 
  r_shadowofs=0 0.5 0.5
 
  r_shadowofs=0 0.5 0.5
  
== Structure ==
+
= Structure =
 +
 
 +
== [qfont] group ==
 +
 
 +
Should be the first groups of file, it sets font drawer and face group.
  
 
{| border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse; width:100%"
 
{| border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse; width:100%"
! width=6% | Key pair
+
! width=6% bgcolor=#EEDFDF  | Key pair
! width=83% | Description
+
! width=83% bgcolor=#EEDFDF | Description
|-
+
| '''[qfont]'''
+
| Should be the first groups of file.
+
 
|-
 
|-
 
|'''type'''=''x''
 
|'''type'''=''x''
Line 30: Line 33:
  
 
Possible values:
 
Possible values:
* FT - Darkplaces vector fonts using freetype library
+
* ft - Darkplaces vector fonts using freetype library
* ASCII - Quake ascii conchars (256 chars on a 16*16 table)
+
* ascii - Quake ascii conchars (256 chars on a 16*16 table)
* GLYPH - QuakeC glyph font renderer (each char is separate picture)
+
* glyph - QuakeC glyph font renderer (each char is separate picture).
 
|-
 
|-
 
|'''face'''=''string''
 
|'''face'''=''string''
Line 50: Line 53:
 
|-
 
|-
 
|'''respath'''=''path''
 
|'''respath'''=''path''
|Path to font resources. Could be relative (if begins with ./) or absolute (from gamedir). Default is subfolder named as font file (i.e if font file is gfx/myfont.qfont, it's default resources directory will be ''gfx/myfont/'').
+
|Path to font resources. Could be relative (if begins with ./) or absolute (from gamedir). Default is subfolder named as font file.
 
|}
 
|}
  
{{hidden begin | Freetype font face group }}
+
== Freetype font face group ==
  
 
Attributes of font face for freetype font renderer.
 
Attributes of font face for freetype font renderer.
  
 
{| border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse; width:100%"
 
{| border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse; width:100%"
! width=6% | Key pair
+
! width=6% bgcolor=#EEDFDF | VKey pairlue
! width=83% | Description
+
! width=83% bgcolor=#EEDFDF | Description
 
|-
 
|-
 
|'''file'''=''path''
 
|'''file'''=''path''
Line 95: Line 98:
 
|Characters uniform scale.
 
|Characters uniform scale.
 
|}
 
|}
{{hidden end}}
 
  
{{hidden begin | Glyph font face group }}
+
== Glyph font face group ==
  
 
Attributes of font face for glyph font renderer.
 
Attributes of font face for glyph font renderer.
  
 
{| border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse; width:100%"
 
{| border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse; width:100%"
! width=6% | Key pair
+
! width=6% bgcolor=#EEDFDF | Key pair
! width=83% | Description
+
! width=83% bgcolor=#EEDFDF | Description
 
|-
 
|-
 
|'''respath'''=''path''
 
|'''respath'''=''path''
Line 111: Line 113:
 
|Value is a string of: ''picture'' kern ''left'' ''right'' '''codes''' ''code1'' ''code2'' ''codeX''. Kern parmeter is optional. One pic may have many ASCII codes.
 
|Value is a string of: ''picture'' kern ''left'' ''right'' '''codes''' ''code1'' ''code2'' ''codeX''. Kern parmeter is optional. One pic may have many ASCII codes.
 
|}
 
|}
{{hidden end}}
 
  
[[Category:File formats]]
 
  
__NOTOC__
+
= Glyph vs Ascii vs Freetype =
 +
 
 +
Reason all that groups exists is that all of them was maked for different tasks.
 +
 
 +
Freetype is best at covering GUI's. ASCII is simple, and Glyph is versatile since it's purely QC-based.
 +
 
 +
 
 +
[[Category:File formats]]

Please note that all contributions to Blood Wiki are considered to be released under the Creative Commons Attribution Share Alike (see BloodWiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)

Templates used on this page:

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox