Skip to content

Commit

Permalink
Change the default BitmapFont texture size (#6643)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy committed May 28, 2020
1 parent 37cb4cb commit 1ee3a39
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/text-bitmap/src/BitmapFont.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ export class BitmapFont
* @static
* @member {PIXI.IBitmapFontOptions}
* @property {number} resolution=1
* @property {number} textureWidth=2048
* @property {number} textureHeight=2048
* @property {number} textureWidth=512
* @property {number} textureHeight=512
* @property {number} padding=4
* @property {string|string[]|string[][]} chars=PIXI.BitmapFont.ALPHANUMERIC
*/
public static readonly defaultOptions: IBitmapFontOptions = {
resolution: 1,
textureWidth: 2048,
textureHeight: 2048,
textureWidth: 512,
textureHeight: 512,
padding: 4,
chars: BitmapFont.ALPHANUMERIC,
};
Expand Down Expand Up @@ -320,8 +320,8 @@ export class BitmapFont
* in the font set. You can also use ranges. For example, `[['a', 'z'], ['A', 'Z'], "!@#$%^&*()~{}[] "]`.
* Don't forget to include spaces ' ' in your character set!
* @param {number} [options.resolution=1] - Render resolution for glyphs.
* @param {number} [options.textureWidth=2048] - Optional width of atlas, smaller values to reduce memory.
* @param {number} [options.textureHeight=2048] - Optional height of atlas, smaller values to reduce memory.
* @param {number} [options.textureWidth=512] - Optional width of atlas, smaller values to reduce memory.
* @param {number} [options.textureHeight=512] - Optional height of atlas, smaller values to reduce memory.
* @param {number} [options.padding=4] - Padding between glyphs on texture atlas.
* @return {PIXI.BitmapFont} Font generated by style options.
* @static
Expand Down Expand Up @@ -480,7 +480,7 @@ export class BitmapFont
* @property {string | string[] | string[][]} [chars=PIXI.BitmapFont.ALPHANUMERIC] - the character set to generate
* @property {number} [resolution=1] - the resolution for rendering
* @property {number} [padding=4] - the padding between glyphs in the atlas
* @property {number} [textureWidth=2048] - the width of the texture atlas
* @property {number} [textureHeight=2048] - the height of the texture atlas
* @property {number} [textureWidth=512] - the width of the texture atlas
* @property {number} [textureHeight=512] - the height of the texture atlas
*/

0 comments on commit 1ee3a39

Please sign in to comment.