NSX (QFont)

From Blood Wiki
(Difference between revisions)
Jump to: navigation, search
(Introduction)
Line 1: Line 1:
.QFONT files are [[NSX|.NSX scripts]] that holds parameters for Blood Omnicide font draw overlay (a QuakeC interface module).
+
= Introduction =
 +
 
 +
.QFONT files are [[NSX|.NSX scripts]] that holds parameters for [[NetherMenu]] font draw module.
  
 
Example of .QFONT file contents:
 
Example of .QFONT file contents:
Line 18: Line 20:
  
 
= Structure =
 
= Structure =
 +
 +
== [qfont] group ==
 +
 +
Should be the first groups of file, it sets font drawer and face group.
 +
 +
==== type ''x'' ====
 +
Type of font drawer, each of it has it's advantages and disadvantages:
 +
 +
Possible values:
 +
* ft - Darkplaces vector fonts using freetype library
 +
* ascii - Quake ascii conchars (256 chars on a 16*16 table)
 +
* glyph - QuakeC glyph font renderer (each char is separatepic).
 +
 +
==== face ''path'' ====
 +
Path to the glyphs map which have different value based on font renderer type:
 +
 +
* for ascii conchars its path to conchars map.
 +
* for freetype is path to .TTF/.OTF file.
 +
* for glyph renderer it is name of glyph table group.
 +
 +
==== brightness ''x'' ====
 +
 +
Floating point value of brightness scale. 1 is nothing, 0.1 is 10% etc.
 +
 +
Applies to all renderer types.
 +
 +
==== scale ''x'' ''y'' ====
 +
 +
Two floating point values storing horizontal and vertical scale of font chars.
 +
 +
Applies to all renderer types.
 +
 +
==== width ''x'' ====
 +
 +
X component of scale.
 +
 +
==== height ''y'' ====
 +
 +
Y component of scale.
 +
 +
==== respath ''path'' ====
 +
 +
Path to font resources. Default path is folder named as qfont file in same folder.
  
 
[[Category:File formats]]
 
[[Category:File formats]]

Revision as of 18:35, 2 July 2012

Contents

Introduction

.QFONT files are .NSX scripts that holds parameters for NetherMenu font draw module.

Example of .QFONT file contents:

[qfont]
type=FT
face=default
brightness=0.8
width=1.2

[default]
file=./big.ttf
sizes=38
glyphs=abcdefghijklmnopqrttuvwxyz0123456789
r_shadow=0.8
r_shadowblur=1
r_shadowofs=0 0.5 0.5

Structure

[qfont] group

Should be the first groups of file, it sets font drawer and face group.

type x

Type of font drawer, each of it has it's advantages and disadvantages:

Possible values:

  • ft - Darkplaces vector fonts using freetype library
  • ascii - Quake ascii conchars (256 chars on a 16*16 table)
  • glyph - QuakeC glyph font renderer (each char is separatepic).

face path

Path to the glyphs map which have different value based on font renderer type:

  • for ascii conchars its path to conchars map.
  • for freetype is path to .TTF/.OTF file.
  • for glyph renderer it is name of glyph table group.

brightness x

Floating point value of brightness scale. 1 is nothing, 0.1 is 10% etc.

Applies to all renderer types.

scale x y

Two floating point values storing horizontal and vertical scale of font chars.

Applies to all renderer types.

width x

X component of scale.

height y

Y component of scale.

respath path

Path to font resources. Default path is folder named as qfont file in same folder.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox