Check-in [f6d423a9ba]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add isValid() method to SQFFont; Add note in changelog about fixed empty strings.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:f6d423a9ba18d4beb664ae56bb2d5870e6c53ad0
User & Date: stephanie.gawroriski 2019-06-16 04:45:46
Context
2019-06-16
04:47
Actually set the monospace font! check-in: 93241bdf3f user: stephanie.gawroriski tags: trunk
04:45
Add isValid() method to SQFFont; Add note in changelog about fixed empty strings. check-in: f6d423a9ba user: stephanie.gawroriski tags: trunk
04:40
P4 PBM is packed in binary and is not in pixel bits, so write the file correctly. check-in: 1ff2b8e880 user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to changelog.mkd.

94
95
96
97
98
99
100

101
102
103
104
105
106
107
     * Corrected mapping of characters since SQFs are ISO-8859-1 and most games
       may be ISO-8859-1, since some characters may be missing in the font
       use similar graphics for them.
     * Fully added `cc.squirreljme.runtime.lcdui.gfx.SerializedGraphics`, This
       allows all of the graphics drawing functions to be forwarded when
       graphics acceleration is used, previously only a subset of methods were
       implemented.

     * Fully drawn default fonts.
     * Made all the graphics operations not throw a `TODO`, instead they will
       just draw a placeholder graphic.
     * Moved the graphics drawing operations to another class.
     * Removed the 24 strike font, it was too large.
     * Update the `Display` when a command is added or removed.
     * Use a default title for a `Displayable` if one has not been set, this







>







94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
     * Corrected mapping of characters since SQFs are ISO-8859-1 and most games
       may be ISO-8859-1, since some characters may be missing in the font
       use similar graphics for them.
     * Fully added `cc.squirreljme.runtime.lcdui.gfx.SerializedGraphics`, This
       allows all of the graphics drawing functions to be forwarded when
       graphics acceleration is used, previously only a subset of methods were
       implemented.
     * Fixed crash in text drawing when an empty string is drawn.
     * Fully drawn default fonts.
     * Made all the graphics operations not throw a `TODO`, instead they will
       just draw a placeholder graphic.
     * Moved the graphics drawing operations to another class.
     * Removed the 24 strike font, it was too large.
     * Update the `Display` when a command is added or removed.
     * Use a default title for a `Displayable` if one has not been set, this

Changes to runt/apis/midp-lcdui/cc/squirreljme/runtime/lcdui/font/SQFFont.java.

138
139
140
141
142
143
144














145
146
147
148
149
150
151
	public final int charWidth(char __c)
	{
		byte[] charwidths = this._charwidths;
		if (__c > 256 || !this._isvalidchar[__c])
			return charwidths[0];
		return charwidths[__c];
	}














	
	/**
	 * Loads the bitmap
	 *
	 * @param __c The character to get.
	 * @param __bmp The output bitmap.
	 * @return The bytes per scanline.







>
>
>
>
>
>
>
>
>
>
>
>
>
>







138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
	public final int charWidth(char __c)
	{
		byte[] charwidths = this._charwidths;
		if (__c > 256 || !this._isvalidchar[__c])
			return charwidths[0];
		return charwidths[__c];
	}
	
	/**
	 * Is the specified character valid?
	 *
	 * @param __c The character to check.
	 * @return If the character is valid.
	 * @since 2019/06/16
	 */
	public final boolean isValid(char __c)
	{
		if (__c > 256)
			return false;
		return this._isvalidchar[__c];
	}
	
	/**
	 * Loads the bitmap
	 *
	 * @param __c The character to get.
	 * @param __bmp The output bitmap.
	 * @return The bytes per scanline.