| 2910 | } |
| 2911 | |
| 2912 | static void UnpackAccumulativeOffsetsIntoRanges(int base_codepoint, const short* accumulative_offsets, int accumulative_offsets_count, ImWchar* out_ranges) |
| 2913 | { |
| 2914 | for (int n = 0; n < accumulative_offsets_count; n++, out_ranges += 2) |
| 2915 | { |
| 2916 | out_ranges[0] = out_ranges[1] = (ImWchar)(base_codepoint + accumulative_offsets[n]); |
| 2917 | base_codepoint += accumulative_offsets[n]; |
| 2918 | } |
| 2919 | out_ranges[0] = 0; |
| 2920 | } |
| 2921 | |
| 2922 | //------------------------------------------------------------------------- |
| 2923 | // [SECTION] ImFontAtlas glyph ranges helpers |
no outgoing calls
no test coverage detected