Skip to content

Commit

Permalink
feat: add font configuration as scriptable object
Browse files Browse the repository at this point in the history
  • Loading branch information
Rofli Sanches committed May 14, 2021
1 parent 65c6385 commit cfdb5ac
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Source/Assets/FontAtlasConfigAsset.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using UnityEngine;

namespace UImGui.Assets
{
// TODO: Make a default resource file as sample.
[CreateAssetMenu(menuName = "Dear ImGui/Font Atlas Configuration")]
internal sealed class FontAtlasConfigAsset : ScriptableObject
{
public FontRasterizerType Rasterizer;
public uint RasterizerFlags;
public FontDefinition[] Fonts;
}
}
11 changes: 11 additions & 0 deletions Source/Assets/FontAtlasConfigAsset.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cfdb5ac

Please sign in to comment.