Chris Danford
80554fc6c1
style cleanup
2006-06-12 09:14:26 +00:00
Glenn Maynard
a8d96a30c0
fix "range" keyword
2006-03-02 07:15:25 +00:00
Glenn Maynard
62a0ac1370
spacing
2006-02-14 11:16:39 +00:00
Chris Danford
7f821e8cfc
CString -> RString
2006-01-22 01:00:06 +00:00
Chris Danford
c7d769829a
add ThemeManager to smtools
2005-12-29 05:52:50 +00:00
Chris Danford
d698a5f1ec
CString -> RString in RageUtil
...
ThemeMetric<CString> -> LocalizedString to eliminate dependencies
2005-12-20 08:35:47 +00:00
Chris Danford
37f82b43f7
remove CStringArray #define
2005-12-09 21:36:22 +00:00
Glenn Maynard
cbce8648e7
cleanup
2005-11-01 15:00:50 +00:00
Glenn Maynard
7d3bb719f6
GetLineWidthInSourcePixels including overdraw causes a problem. Text is left-
...
aligned by default; we add the value of GetLineWidthInSourcePixels to right-
align (and n/2 to center-align). This causes left-alignment to be flush, with
overdraw over the alignment (correct), but right-alignment to align against
the overdraw. This causes fonts with borders to align with the border over
the edge on the left and against the edge on the right.
If we only include overdraw for cropping and scaling, and not positioning, then
we're inconsistent. For example, if we have a border with 100 pixels of space,
and we scale to 100 pixels in this way, the text will be scaled to exactly 100
pixels, but if left- or right-aligned against the border, will overlap the border
and not actually use the whole space. We need to be consistent: either consider
the overdraw part of the character or don't.
Ultimately, the overdraw was intended to not be considered part of the character
itself. It's intended for use with fonts with borders/strokes/glow around lettering.
That causes every character in a font to be widened, usually uniformly. This
tends to not increase the subjective width of the character: if aligning hard
against a border, these features should be ignored. So, let's go back to the
original intent, and don't consider overdraw part of the character.
2005-10-31 14:56:27 +00:00
Glenn Maynard
64d9c29568
Simplify: store attributes in a simple map<CString,CString>, not in an object.
...
Makes attributes lighter.
2005-10-11 10:24:07 +00:00
Chris Danford
a19f0b492a
RTL cleanup
2005-09-22 16:49:51 +00:00
Chris Danford
1a7899e270
add support for Right to Left fonts
2005-09-22 09:08:11 +00:00
Chris Danford
48ebc53549
return NULL -> return CString() for clarity and efficiency
2005-09-04 16:55:21 +00:00
Glenn Maynard
6b87537086
Font paths must be prefix-unique, like other assets. cleanup
2005-09-03 00:17:37 +00:00
Chris Danford
e439ae2a96
return "" -> return NULL
2005-09-02 00:14:07 +00:00
Glenn Maynard
bf8ef93ac2
cleanup
2005-08-29 04:45:22 +00:00
Glenn Maynard
db92df2fe1
FontPageSettings is a complex type; avoid unneeded copying
2005-08-26 18:33:42 +00:00
Glenn Maynard
221e369b7b
long-needed style update. no non-cosmetic changes.
2005-05-19 06:55:31 +00:00
Glenn Maynard
01490f8f68
revert weird wrapping hack. I can't make sense of it, and it's causing
...
infinite loops. Implement overdraw handling correctly.
2005-05-19 06:11:46 +00:00
Chris Danford
fd94e4f38d
don't warn about dimensions if texture is "_blank"
2005-03-21 07:40:23 +00:00
Chris Danford
981e52ec58
merge IniFile and XmlFile
2005-01-07 14:28:00 +00:00
Glenn Maynard
0e7c5a7141
ascii optimization
2004-10-01 17:25:17 +00:00
Glenn Maynard
3c997641f8
Remove game-specific glyphs. It adds overhead to setting every BitmapText,
...
and nothing uses it. If we want to do this, add Lua conditionals to font
pages.
2004-09-27 13:33:08 +00:00
Chris Danford
03fbb915f3
remove VC6 scoping hacks
2004-09-21 07:53:39 +00:00
Glenn Maynard
0a11fe26df
fix pages being given default maps that they shouldn't have
2004-09-09 02:59:15 +00:00
Chris Danford
ff4c12b727
rename GameDef -> Game
2004-07-25 17:07:32 +00:00
Chris Danford
64628fac21
remove enum Game. Instead, pass around the GameDef pointer
2004-07-25 04:27:20 +00:00
Glenn Maynard
f21d3ca71b
fix odd font file searching
2004-07-24 23:00:27 +00:00
Glenn Maynard
47d43cee82
unsigned -> size_t for string::find returns
2004-06-16 07:01:12 +00:00
Glenn Maynard
2cab5c4689
license updates
2004-05-31 22:42:12 +00:00
Chris Danford
93e274b3ac
make a Font charmap for numbers fonts
2004-05-31 00:11:34 +00:00
Glenn Maynard
c0adadd3a5
IniFile cleanup
2004-05-23 02:27:51 +00:00
Glenn Maynard
e72dcafae5
replace UTF-8 functions from glib
2004-05-17 21:28:26 +00:00
Glenn Maynard
304b03efa7
Non-breaking space
2004-01-10 03:32:46 +00:00
Glenn Maynard
fddcb9ecd5
Use CHECKPOINT_M instead of Checkpoint. It's simpler, faster and more reliable.
2003-10-22 06:37:31 +00:00
Glenn Maynard
bfbdd31db7
Fix confusing behavior when importing a font that doesn't exist
2003-10-17 23:41:16 +00:00
Glenn Maynard
4ae167bf9e
Don't grayscale fonts by default.
...
Load properties common to all font pages from the section "common".
2003-10-08 23:18:56 +00:00
Glenn Maynard
a37668e44e
Add TextureHints font metric.
...
By default, load fonts as 4-bit grayscale, 4-bit alpha (I4A4) maps.
This halves font texture memory usage.
2003-10-08 02:54:40 +00:00
Glenn Maynard
b13cb43aa6
IniFile::GetValueB->GetValue, etc. Cleanup.
2003-10-02 02:03:29 +00:00
Glenn Maynard
7bb4c6c2fb
Default to 16bpp for fonts, unless the 32bpp hint is used.
2003-09-03 22:52:15 +00:00
Glenn Maynard
34b8ae04b9
Allow texture hints in font pages.
2003-09-03 09:03:58 +00:00
Glenn Maynard
c054999c63
testing
2003-07-08 04:40:26 +00:00
Glenn Maynard
eaeb1284d3
testing
2003-07-08 04:37:55 +00:00
Glenn Maynard
7280a45acd
test
2003-07-08 03:53:45 +00:00
Glenn Maynard
7a3cc013f3
dummy
2003-07-08 03:25:15 +00:00
Glenn Maynard
08a911080f
dummy
2003-07-08 03:21:26 +00:00
Glenn Maynard
a89cfd00cf
dummy commit
2003-07-08 03:20:48 +00:00
Glenn Maynard
e386f47fbd
test
2003-07-08 03:19:30 +00:00
Glenn Maynard
55a6dac6a1
nul; testing scripts - 1 2 3 *tap tap*
2003-07-06 05:41:36 +00:00
Glenn Maynard
056aedd9aa
allow tweaking horizontal spacing
2003-07-06 05:32:45 +00:00