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