Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the default BitmapFont texture size #6643

Merged
merged 5 commits into from
May 28, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
*/