| 1568 | } |
| 1569 | |
| 1570 | int ImFontAtlas::AddCustomRectRegular(unsigned int id, int width, int height) |
| 1571 | { |
| 1572 | IM_ASSERT(id >= 0x10000); |
| 1573 | IM_ASSERT(width > 0 && width <= 0xFFFF); |
| 1574 | IM_ASSERT(height > 0 && height <= 0xFFFF); |
| 1575 | CustomRect r; |
| 1576 | r.ID = id; |
| 1577 | r.Width = (unsigned short)width; |
| 1578 | r.Height = (unsigned short)height; |
| 1579 | CustomRects.push_back(r); |
| 1580 | return CustomRects.Size - 1; // Return index |
| 1581 | } |
| 1582 | |
| 1583 | int ImFontAtlas::AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset) |
| 1584 | { |
no test coverage detected