+ // If glyph added to an existing or new atlas then a new glyph record is required.
+ // Check if an existing atlas will fit the image, create a new one if required.
+ if ( mAtlasManager.Add( bitmap, slot ) )
+ {
+ // A new atlas was created so set the texture set details for the atlas
+ Dali::Texture atlas = mAtlasManager.GetAtlasContainer( slot.mAtlasId );
+ TextureSet textureSet = TextureSet::New();
+ textureSet.SetTexture( 0u, atlas );
+ mAtlasManager.SetTextures( slot.mAtlasId, textureSet );
+ }
+
+ GlyphRecordEntry record;
+ record.mIndex = glyph.index;
+ record.mOutlineWidth = outlineWidth;