Editing NSX (QFont)
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: | ||
− | + | = 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 = | |
+ | |||
+ | [qfont] 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 |
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
|'''type'''=''x'' | |'''type'''=''x'' | ||
Line 30: | Line 31: | ||
Possible values: | 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 separate picture). |
|- | |- | ||
|'''face'''=''string'' | |'''face'''=''string'' | ||
Line 50: | Line 51: | ||
|- | |- | ||
|'''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 | + | |Path to font resources. Could be relative (if begins with ./) or absolute (from gamedir). Default is subfolder named as font file. |
|} | |} | ||
Line 58: | Line 59: | ||
{| 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% | | + | ! width=6% bgcolor=#EEDFDF | VKey pairlue |
− | ! width=83% | Description | + | ! width=83% bgcolor=#EEDFDF | Description |
|- | |- | ||
|'''file'''=''path'' | |'''file'''=''path'' | ||
Line 102: | Line 103: | ||
{| 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 113: | Line 114: | ||
{{hidden end}} | {{hidden end}} | ||
− | + | = Usage = | |
+ | 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]] |