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.
PHP does not seem to have any extension that works directly with FreeType, the reigning open source library to deal with TrueType fonts.
You may have to shell out to another language with an appropriate library, like Perl's Font::FreeType::Glyph, which will let you ask each font whether it has a representation of a particular glyph.
In the alternative, you could write the proper PHP extension directly in C.