| 2190 | } |
| 2191 | |
| 2192 | int ImFontAtlas::AddCustomRectRegular(int width, int height) |
| 2193 | { |
| 2194 | IM_ASSERT(width > 0 && width <= 0xFFFF); |
| 2195 | IM_ASSERT(height > 0 && height <= 0xFFFF); |
| 2196 | ImFontAtlasCustomRect r; |
| 2197 | r.Width = (unsigned short)width; |
| 2198 | r.Height = (unsigned short)height; |
| 2199 | CustomRects.push_back(r); |
| 2200 | return CustomRects.Size - 1; // Return index |
| 2201 | } |
| 2202 | |
| 2203 | int ImFontAtlas::AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset) |
| 2204 | { |
no test coverage detected