How do I get a list of all characters available in the TrueType font? using PHP.
If I look at your older post, it seems you're stuck in the format 4 subtable extraction. After having extracted the rangeShift value, endCode must be extracted for each segCount value, then reservedPad on its own, then startCode, idDelta, and idRangeOffset must also be extracted for each segCount.
Then it gets harder. You have extracted all the data available, and now have to rebuild the information. For this, you should take a look at this to get a glimpse of what you have to do. With this, you should have all the information needed to finish your code.