This repository was archived by the owner on Sep 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathBitmapFont.html
More file actions
152 lines (130 loc) · 23.1 KB
/
BitmapFont.html
File metadata and controls
152 lines (130 loc) · 23.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html>
<html>
<head>
<title>luxe - </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="shortcut icon" href="../../images/favicon.png" />
<link rel="stylesheet" type="text/css" href="../../css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="../../css/code.css" media="all">
<link rel="stylesheet" type="text/css" href="../../css/font.css" media="all">
<link rel="stylesheet" type="text/css" href="../../css/tooltipster.css" media="all">
<link rel="stylesheet" type="text/css" href="../../css/tooltipster-shadow.css" media="all">
<script src="../../js/jquery-2.0.3.min.js"> </script>
<script src="../../js/jquery.tooltipster.min.js"> </script>
<script>
$(document).ready(function() {
$('.section').css('display','none');
$('.readmore').click(function(e){
var _child = $(this).parent().find('.section').first();
var _opp = 'block';
if( _child.css('display') == 'block' ) {
_opp = 'none';
} else {
}
_child.css('display', _opp);
});
$('div.sample').on('click', function(e){
//get the data tag
var content = $(this).attr('data-content');
//remove clicking handler
$(this).off('click');
//replace the content!
$(this).html('<iframe src="'+content+'" sandbox="allow-same-origin allow-scripts" style="overflow:hidden; scrollbar:none; border: 0; width:640px; height:427px;"></iframe> ')
});
$('.tooltip').each(function(e){
var c = $(this).attr('data-tooltip');
$(this).tooltipster({
content:$('<span>' + c + '</span>'),
interactive:true,
theme:'tooltipster-shadow'
});
});
}); //document.ready
!function(g,s,q,r,d){r=g[r]=g[r]||function(){(r.q=r.q||[]).push(
arguments)};d=s.createElement(q);q=s.getElementsByTagName(q)[0];
d.src='//d1l6p2sc9645hc.cloudfront.net/tracker.js';q.parentNode.
insertBefore(d,q)}(window,document,'script','_gs');
_gs('GSN-518437-J');
</script>
</head>
<body>
<div class="content">
<p><a href="../../api/index.html"><img src="../../images/logo.png" alt="Logo"></a></p>
<p><hr/>
<a href="#" id="search_bar" onclick="return;"><div> search API <em>(or start typing anywhere)</em> </div></a></p>
<hr/>
<script src="../../js/omnibar.js"> </script>
<link rel="stylesheet" type="text/css" href="../../css/omnibar.css" media="all">
<div id="omnibar"> <a href="#" onclick="return" id="omnibar_close"></a> <input id="omnibar_text" type="text" placeholder="search types..."></input></div>
<script id="typelist" data-relpath="../../" data-types="Luxe,luxe.Audio,luxe.AudioEvent,luxe.AudioHandle,luxe.AudioInstance,luxe.AudioSource,luxe.AudioState,luxe.BitmapFontInfo,luxe.BytesInfo,luxe.Camera,luxe.Circle,luxe.Color,luxe.ColorHSL,luxe.ColorHSV,luxe.Component,luxe.Cursor,luxe.Debug,luxe.DebugError,luxe.Draw,luxe.EmitHandler,luxe.Emitter,luxe.Engine,luxe.Entity,luxe.Ev,luxe.Events,luxe.Game,luxe.GameConfig,luxe.GamepadEvent,luxe.GamepadEventType,luxe.HandlerList,luxe.ID,luxe.IO,luxe.Input,luxe.InputEvent,luxe.InputEventType,luxe.InteractState,luxe.ItemInfo,luxe.JSONInfo,luxe.Key,luxe.KeyEvent,luxe.Log,luxe.Matrix,luxe.Mesh,luxe.ModState,luxe.MouseButton,luxe.MouseEvent,luxe.NineSlice,luxe.Objects,luxe.Parcel,luxe.ParcelChange,luxe.ParcelEvent,luxe.ParcelList,luxe.ParcelProgress,luxe.ParcelState,luxe.Particle,luxe.ParticleEmitter,luxe.ParticleSystem,luxe.Physics,luxe.PhysicsEngine,luxe.PhysicsEvent,luxe.ProjectionType,luxe.Quaternion,luxe.Rectangle,luxe.ResourceEvent,luxe.ResourceState,luxe.ResourceStats,luxe.ResourceType,luxe.Resources,luxe.Scan,luxe.Scene,luxe.Screen,luxe.ShaderInfo,luxe.SizeMode,luxe.SoundInfo,luxe.Sprite,luxe.State,luxe.States,luxe.Tag,luxe.Text,luxe.TextAlign,luxe.TextEvent,luxe.TextEventType,luxe.TextInfo,luxe.TextureInfo,luxe.Timer,luxe.TouchEvent,luxe.Transform,luxe.UserConfig,luxe.Vec,luxe.Vector,luxe.Visual,luxe.WindowEvent,luxe.WindowEventData,luxe.WindowEventType,luxe._Emitter.EmitNode,luxe._Ev.Ev_Impl_,luxe._Events.EventConnection,luxe._Events.EventObject,luxe._Input.MouseButton_Impl_,luxe._Log.LogError,luxe._NineSlice.Slice,luxe._Parcel.ParcelEvent_Impl_,luxe._Parcel.ParcelState_Impl_,luxe._Particles.ParticleEmitterInitData,luxe._Physics.PhysicsEvent_Impl_,luxe._Resources.ResourceEvent_Impl_,luxe._Resources.ResourceState_Impl_,luxe._Resources.ResourceType_Impl_,luxe.collision.Collision,luxe.collision.Results,luxe.collision.ResultsIterator,luxe.collision.ShapeDrawer,luxe.collision.ShapeDrawerLuxe,luxe.collision._Collision.Constructible,luxe.collision.data.RayCollision,luxe.collision.data.RayCollisionHelper,luxe.collision.data.RayIntersection,luxe.collision.data.ShapeCollision,luxe.collision.sat.SAT2D,luxe.collision.shapes.Circle,luxe.collision.shapes.InfiniteState,luxe.collision.shapes.Polygon,luxe.collision.shapes.Ray,luxe.collision.shapes.Shape,luxe.components.Components,luxe.components.cameras.FlyCamera,luxe.components.physics.nape.BoxCollider,luxe.components.physics.nape.BoxColliderOptions,luxe.components.physics.nape.CircleCollider,luxe.components.physics.nape.CircleColliderOptions,luxe.components.physics.nape.NapeBody,luxe.components.physics.nape.NapeBodyOptions,luxe.components.physics.nape.PolygonCollider,luxe.components.physics.nape.PolygonColliderOptions,luxe.components.render.MeshComponent,luxe.components.sprite.SpriteAnimation,luxe.components.sprite.SpriteAnimationData,luxe.components.sprite.SpriteAnimationEventData,luxe.components.sprite.SpriteAnimationFrame,luxe.components.sprite.SpriteAnimationFrameEvent,luxe.components.sprite.SpriteAnimationFrameSource,luxe.components.sprite.SpriteAnimationType,luxe.debug.BatcherDebugView,luxe.debug.DebugInspectorOptions,luxe.debug.DebugView,luxe.debug.Inspector,luxe.debug.ProfilerDebugView,luxe.debug.RenderStats,luxe.debug.SceneDebugView,luxe.debug.StatsDebugView,luxe.debug.TraceDebugView,luxe.debug._ProfilerDebugView.ProfilerBar,luxe.debug._ProfilerDebugView.ProfilerGraph,luxe.debug._ProfilerDebugView.ProfilerValue,luxe.importers.bitmapfont.BitmapFontData,luxe.importers.bitmapfont.BitmapFontParser,luxe.importers.bitmapfont.Character,luxe.importers.obj.Data,luxe.importers.obj.Normal,luxe.importers.obj.Reader,luxe.importers.obj.UV,luxe.importers.obj.Vector,luxe.importers.obj.Vertex,luxe.importers.texturepacker.TexturePackerData,luxe.importers.texturepacker.TexturePackerFrame,luxe.importers.texturepacker.TexturePackerJSON,luxe.importers.texturepacker.TexturePackerJSONType,luxe.importers.texturepacker.TexturePackerMeta,luxe.importers.texturepacker.TexturePackerRect,luxe.importers.texturepacker.TexturePackerSize,luxe.importers.texturepacker.TexturePackerSpriteAnimation,luxe.importers.tiled.TiledImage,luxe.importers.tiled.TiledImageLayer,luxe.importers.tiled.TiledLayer,luxe.importers.tiled.TiledMap,luxe.importers.tiled.TiledMapData,luxe.importers.tiled.TiledMapOptions,luxe.importers.tiled.TiledObject,luxe.importers.tiled.TiledObjectGroup,luxe.importers.tiled.TiledObjectType,luxe.importers.tiled.TiledPolyObject,luxe.importers.tiled.TiledPropertyTile,luxe.importers.tiled.TiledTile,luxe.importers.tiled.TiledTileset,luxe.importers.tiled.TiledUtil,luxe.macros.BuildVersion,luxe.macros.ComponentRules,luxe.macros.EntityRules,luxe.options.AudioResourceOptions,luxe.options.BatcherOptions,luxe.options.BitmapFontOptions,luxe.options.BytesResourceOptions,luxe.options.CameraOptions,luxe.options.CircleGeometryOptions,luxe.options.ColorOptions,luxe.options.ComponentOptions,luxe.options.DrawArcOptions,luxe.options.DrawBoxOptions,luxe.options.DrawCircleOptions,luxe.options.DrawLineOptions,luxe.options.DrawNgonOptions,luxe.options.DrawPlaneOptions,luxe.options.DrawPolygonOptions,luxe.options.DrawRectangleOptions,luxe.options.DrawRingOptions,luxe.options.DrawTextureOptions,luxe.options.EntityOptions,luxe.options.GeometryOptions,luxe.options.JSONResourceOptions,luxe.options.LineGeometryOptions,luxe.options.LoadAudioOptions,luxe.options.LoadFontOptions,luxe.options.LoadShaderOptions,luxe.options.LoadTextureOptions,luxe.options.LuxeCameraOptions,luxe.options.MeshOptions,luxe.options.NineSliceOptions,luxe.options.ParcelOptions,luxe.options.ParcelProgressOptions,luxe.options.ParticleEmitterOptions,luxe.options.ParticleOptions,luxe.options.PlaneGeometryOptions,luxe.options.QuadGeometryOptions,luxe.options.RectangleGeometryOptions,luxe.options.RenderProperties,luxe.options.RenderTextureOptions,luxe.options.ResourceOptions,luxe.options.ShaderOptions,luxe.options.SpriteOptions,luxe.options.StateOptions,luxe.options.StatesOptions,luxe.options.TextOptions,luxe.options.TextResourceOptions,luxe.options.TextureOptions,luxe.options.TileLayerOptions,luxe.options.TileOptions,luxe.options.TilemapOptions,luxe.options.TilemapVisualOptions,luxe.options.TilesetOptions,luxe.options.TransformProperties,luxe.options.VisualOptions,luxe.options._DrawOptions.DrawOptions,luxe.physics.nape.DebugDraw,luxe.physics.nape.PhysicsNape,luxe.physics.nape._DebugDraw.CachedGeometry,luxe.resource.AudioResource,luxe.resource.BytesResource,luxe.resource.JSONResource,luxe.resource.Resource,luxe.resource.TextResource,luxe.structural.BST,luxe.structural.BSTNode,luxe.structural.BSTTraverseMethod,luxe.structural.Bag,luxe.structural.BalancedBST,luxe.structural.BalancedBSTIterator,luxe.structural.BalancedBSTNode,luxe.structural.BalancedBSTTraverseMethod,luxe.structural.Cache,luxe.structural.Heap,luxe.structural.OrderedMap,luxe.structural.OrderedMapIterator,luxe.structural.Pool,luxe.structural.Stack,luxe.structural.StackNode,luxe.structural._Bag.BagNode,luxe.structural._BalancedBST.NodeColor,luxe.tilemaps.Isometric,luxe.tilemaps.IsometricVisual,luxe.tilemaps.Ortho,luxe.tilemaps.OrthoVisual,luxe.tilemaps.Tile,luxe.tilemaps.TileArray,luxe.tilemaps.TileLayer,luxe.tilemaps.TileOffset,luxe.tilemaps.Tilemap,luxe.tilemaps.TilemapOrientation,luxe.tilemaps.TilemapVisual,luxe.tilemaps.TilemapVisualLayerGeometry,luxe.tilemaps.Tileset,luxe.tween.Actuate,luxe.tween.BezierPath,luxe.tween.ComponentPath,luxe.tween.IComponentPath,luxe.tween.LinearPath,luxe.tween.MotionPath,luxe.tween.ObjectHash,luxe.tween.RotationPath,luxe.tween._Actuate.TweenTimer,luxe.tween.actuators.GenericActuator,luxe.tween.actuators.IGenericActuator,luxe.tween.actuators.MethodActuator,luxe.tween.actuators.MotionPathActuator,luxe.tween.actuators.PropertyDetails,luxe.tween.actuators.PropertyPathDetails,luxe.tween.actuators.SimpleActuator,luxe.tween.easing.Back,luxe.tween.easing.BackEaseIn,luxe.tween.easing.BackEaseInOut,luxe.tween.easing.BackEaseOut,luxe.tween.easing.Bounce,luxe.tween.easing.BounceEaseIn,luxe.tween.easing.BounceEaseInOut,luxe.tween.easing.BounceEaseOut,luxe.tween.easing.Cubic,luxe.tween.easing.CubicEaseIn,luxe.tween.easing.CubicEaseInOut,luxe.tween.easing.CubicEaseOut,luxe.tween.easing.Elastic,luxe.tween.easing.ElasticEaseIn,luxe.tween.easing.ElasticEaseInOut,luxe.tween.easing.ElasticEaseOut,luxe.tween.easing.Expo,luxe.tween.easing.ExpoEaseIn,luxe.tween.easing.ExpoEaseInOut,luxe.tween.easing.ExpoEaseOut,luxe.tween.easing.IEasing,luxe.tween.easing.Linear,luxe.tween.easing.LinearEaseNone,luxe.tween.easing.Quad,luxe.tween.easing.QuadEaseIn,luxe.tween.easing.QuadEaseInOut,luxe.tween.easing.QuadEaseOut,luxe.tween.easing.Quart,luxe.tween.easing.QuartEaseIn,luxe.tween.easing.QuartEaseInOut,luxe.tween.easing.QuartEaseOut,luxe.tween.easing.Quint,luxe.tween.easing.QuintEaseIn,luxe.tween.easing.QuintEaseInOut,luxe.tween.easing.QuintEaseOut,luxe.tween.easing.Sine,luxe.tween.easing.SineEaseIn,luxe.tween.easing.SineEaseInOut,luxe.tween.easing.SineEaseOut,luxe.types.user.Game,luxe.utils.GeometryUtils,luxe.utils.Maths,luxe.utils.Random,luxe.utils.Utils,luxe.utils.unifill.CodePoint,luxe.utils.unifill.CodePointIter,luxe.utils.unifill.Exception,luxe.utils.unifill.InternalEncoding,luxe.utils.unifill.InternalEncodingBackwardIter,luxe.utils.unifill.InternalEncodingIter,luxe.utils.unifill.Unicode,luxe.utils.unifill.Unifill,luxe.utils.unifill.Utf16,luxe.utils.unifill.Utf32,luxe.utils.unifill.Utf8,luxe.utils.unifill._CodePoint.CodePoint_Impl_,luxe.utils.unifill._InternalEncoding.UtfX,luxe.utils.unifill._Utf16.StringU16,luxe.utils.unifill._Utf16.StringU16Buffer,luxe.utils.unifill._Utf16.StringU16Buffer_Impl_,luxe.utils.unifill._Utf16.StringU16_Impl_,luxe.utils.unifill._Utf16.Utf16Impl,luxe.utils.unifill._Utf16.Utf16_Impl_,luxe.utils.unifill._Utf32.Utf32_Impl_,luxe.utils.unifill._Utf8.StringU8,luxe.utils.unifill._Utf8.StringU8_Impl_,luxe.utils.unifill._Utf8.Utf8Impl,luxe.utils.unifill._Utf8.Utf8_Impl_,phoenix.BatchState,phoenix.Batcher,phoenix.BatcherEventType,phoenix.BatcherKey,phoenix.BitmapFont,phoenix.BlendEquation,phoenix.BlendMode,phoenix.Camera,phoenix.Circle,phoenix.ClampType,phoenix.Color,phoenix.ColorHSL,phoenix.ColorHSV,phoenix.ComponentOrder,phoenix.DualQuaternion,phoenix.FOVType,phoenix.FilterType,phoenix.Matrix,phoenix.MatrixTransform,phoenix.PrimitiveType,phoenix.ProjectionType,phoenix.Quaternion,phoenix.Ray,phoenix.Rectangle,phoenix.RenderPass,phoenix.RenderPath,phoenix.RenderState,phoenix.RenderTexture,phoenix.Renderer,phoenix.RendererStats,phoenix.Shader,phoenix.Spatial,phoenix.TextAlign,phoenix.Texture,phoenix.TextureDataType,phoenix.TextureFormat,phoenix.TextureID,phoenix.TextureSubmitTarget,phoenix.TextureType,phoenix.Transform,phoenix.Uniforms,phoenix.Vec,phoenix.Vector,phoenix._Batcher.BatcherEventType_Impl_,phoenix._Batcher.BlendEquation_Impl_,phoenix._Batcher.BlendMode_Impl_,phoenix._Batcher.PrimitiveType_Impl_,phoenix._BitmapFont.TextAlign_Impl_,phoenix._Renderer.DefaultShader,phoenix._Renderer.DefaultShaders,phoenix._Shader.Location,phoenix._Shader.Uniform,phoenix._Texture.ClampSlot,phoenix._Texture.ClampSlot_Impl_,phoenix._Texture.ClampType_Impl_,phoenix._Texture.FilterSlot,phoenix._Texture.FilterSlot_Impl_,phoenix._Texture.FilterType_Impl_,phoenix._Texture.TextureSubmitTarget_Impl_,phoenix._Texture.TextureType_Impl_,phoenix._Vector.ComponentOrder_Impl_,phoenix._Vector.Vec_Impl_,phoenix.geometry.ArcGeometry,phoenix.geometry.CircleGeometry,phoenix.geometry.EvTextGeometry,phoenix.geometry.Geometry,phoenix.geometry.GeometryKey,phoenix.geometry.GeometryState,phoenix.geometry.LineGeometry,phoenix.geometry.PackedQuad,phoenix.geometry.PackedQuadOptions,phoenix.geometry.QuadGeometry,phoenix.geometry.QuadPackGeometry,phoenix.geometry.RectangleGeometry,phoenix.geometry.RingGeometry,phoenix.geometry.TextGeometry,phoenix.geometry.TextGeometryOptions,phoenix.geometry.TextureCoord,phoenix.geometry.TextureCoordSet,phoenix.geometry.Vertex,phoenix.geometry._TextGeometry.EvTextGeometry_Impl_,phoenix.utils.Rendering"></script>
<p><h1>BitmapFont</h1>
<small>
<code><a target="_blank" href="https:/github.com/underscorediscovery/luxe/blob/master/phoenix/BitmapFont.hx">phoenix.BitmapFont</a></code>
</small></p>
<hr/>
<p><code>class</code>extends <code><span><a href="../../api/luxe/resource/Resource.html">luxe.resource.Resource</a></span></code></p>
<hr/>
<p> </p>
<p><h3>Members</h3> <hr/><span class="member apipage">
<a name="pages"><a class="lift" href="#pages">pages</a></a><div class="clear"></div>
<code class="signature apipage">pages : <a href="http://api.haxe.org/Map.html">Map</a><<a href="http://api.haxe.org/Int.html">Int</a>, <a href="../../api/phoenix/Texture.html">phoenix.Texture</a>></code><br/></span>
<span class="small_desc_flat">The map of font texture pages to their id.</span><br/><span class="member apipage">
<a name="space_char"><a class="lift" href="#space_char">space_char</a></a><div class="clear"></div>
<code class="signature apipage">space_char : <a href="../../api/luxe/importers/bitmapfont/Character.html">luxe.importers.bitmapfont.Character</a></code><br/></span>
<span class="small_desc_flat">Cached reference of the ‘ ‘(32) character, for sizing on tabs/spaces</span><br/></p>
<p><h3>Properties</h3> <hr/><span class="member apipage">
<a name="info"><a class="lift" href="#info">info</a></a><div class="clear"></div>
<code class="signature apipage">info : <a href="../../api/luxe/importers/bitmapfont/BitmapFontData.html">luxe.importers.bitmapfont.BitmapFontData</a></code><br/></span>
<span class="small_desc_flat">The bitmap font data</span></p>
<p><h3>Methods</h3> <hr/><span class="method apipage">
<a name="dimensions_of"><a class="lift" href="#dimensions_of">dimensions_of</a></a><span class="inline-block static">inline</span><div class="clear"></div>
<code class="signature apipage">dimensions_of(_string:<a href="http://api.haxe.org/String.html">String</a><span></span>, _point_size:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, _into:<a href="../../api/phoenix/Vector.html">phoenix.Vector</a><span></span>, _letter_spc:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, _line_spc:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="../../api/phoenix/Vector.html">phoenix.Vector</a></code><br/><span class="small_desc_flat">Return the dimensions of a given string, at the specified point size.
You can also use width_of or height_of, this is a convenience for those</span></p>
<p></span>
<span class="method apipage">
<a name="height_of"><a class="lift" href="#height_of">height_of</a></a><span class="inline-block static">inline</span><div class="clear"></div>
<code class="signature apipage">height_of(_string:<a href="http://api.haxe.org/String.html">String</a><span></span>, _point_size:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, _line_spc:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="http://api.haxe.org/Float.html">Float</a></code><br/><span class="small_desc_flat">Returns the height of a string, using the given metrics.</span></p>
<p></span>
<span class="method apipage">
<a name="height_of_lines"><a class="lift" href="#height_of_lines">height_of_lines</a></a><span class="inline-block static">inline</span><div class="clear"></div>
<code class="signature apipage">height_of_lines(_lines:<a href="http://api.haxe.org/Array.html">Array</a><<a href="http://api.haxe.org/String.html">String</a>><span></span>, _point_size:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, _line_spc:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="http://api.haxe.org/Float.html">Float</a></code><br/><span class="small_desc_flat">Get the height of the given lines with the given metrics.</span></p>
<p></span>
<span class="method apipage">
<a name="kerning"><a class="lift" href="#kerning">kerning</a></a><span class="inline-block static">inline</span><div class="clear"></div>
<code class="signature apipage">kerning(_first:<a href="http://api.haxe.org/Int.html">Int</a><span></span>, _second:<a href="http://api.haxe.org/Int.html">Int</a><span></span>) : <a href="http://api.haxe.org/Null.html">Null</a><<a href="http://api.haxe.org/Float.html">Float</a>></code><br/><span class="small_desc_flat">Returns the kerning between two glyphs, or 0 if none.
A glyph int id is the value from ‘c’.charCodeAt(0)</span></p>
<p></span>
<span class="method apipage">
<a name="line_height_to_point_size"><a class="lift" href="#line_height_to_point_size">line_height_to_point_size</a></a><span class="inline-block static">inline</span><div class="clear"></div>
<code class="signature apipage">line_height_to_point_size(_pixel_height:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, _line_spc:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="http://api.haxe.org/Float.html">Float</a></code><br/><span class="small_desc_flat">Return the point size at which a line of text will occupy a given pixel height.</span></p>
<p></span>
<span class="method apipage">
<a name="new"><a class="lift" href="#new">new</a></a><div class="clear"></div>
<code class="signature apipage">new(_options:<a href="../../api/luxe/options/BitmapFontOptions.html">luxe.options.BitmapFontOptions</a><span></span>) : <a href="http://api.haxe.org/Void.html">Void</a></code><br/><span class="small_desc_flat"></span></p>
<p></span>
<span class="method apipage">
<a name="reload"><a class="lift" href="#reload">reload</a></a><div class="clear"></div>
<code class="signature apipage">reload() : <a href="https://snowkit.github.io/snow/api/snow/api/Promise.html">snow.api.Promise</a></code><br/><span class="small_desc_flat"></span></p>
<p></span>
<span class="method apipage">
<a name="width_of"><a class="lift" href="#width_of">width_of</a></a><span class="inline-block static">inline</span><div class="clear"></div>
<code class="signature apipage">width_of(_string:<a href="http://api.haxe.org/String.html">String</a><span></span>, _point_size:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, _letter_spc:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, _line_widths:<a href="http://api.haxe.org/Array.html">Array</a><<a href="http://api.haxe.org/Float.html">Float</a>><span></span>) : <a href="http://api.haxe.org/Float.html">Float</a></code><br/><span class="small_desc_flat">Returns the width of the given string, using the given metrics.
This will split the string and populate the optional _line_widths array with each line width of the string</span></p>
<p></span>
<span class="method apipage">
<a name="width_of_line"><a class="lift" href="#width_of_line">width_of_line</a></a><div class="clear"></div>
<code class="signature apipage">width_of_line(_string:<a href="http://api.haxe.org/String.html">String</a><span></span>, _point_size:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, _letter_spc:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="http://api.haxe.org/Float.html">Float</a></code><br/><span class="small_desc_flat">Returns the width of the given line, which assumes the line is already split up (does not split the string), using the given metrics.</span></p>
<p></span>
<span class="method apipage">
<a name="wrap_string_to_bounds"><a class="lift" href="#wrap_string_to_bounds">wrap_string_to_bounds</a></a><div class="clear"></div>
<code class="signature apipage">wrap_string_to_bounds(_string:<a href="http://api.haxe.org/String.html">String</a><span></span>, _bounds:<a href="../../api/phoenix/Rectangle.html">phoenix.Rectangle</a><span></span>, _point_size:<a href="http://api.haxe.org/Float.html">Float</a><span></span>, _letter_spc:<a href="http://api.haxe.org/Float.html">Float</a><span></span>) : <a href="http://api.haxe.org/String.html">String</a></code><br/><span class="small_desc_flat">Wrap the given string to the given rectangle, using the given metrics.
Returns a new array, with each line of the string split across the bounds.</span></p>
<p></span></p>
<hr/>
<p>
</p>
</div>
</body>
</html>