getting document character styles - Printable Version +- Hot Door CORE Forum (http://hotdoorcore.com/forum) +-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1) +--- Forum: General discussion (http://hotdoorcore.com/forum/forumdisplay.php?fid=3) +--- Thread: getting document character styles (/showthread.php?tid=343) |
getting document character styles - Rick Johnson - 04-06-2023 How does one get the character styles defined in the current document? I want to apply an existing text style, chosen by the user, to new text art. In the code below, it crashes on the first line with the error "Thread 1: EXC_BAD_ACCESS (code=1, address=0x8)" I'm guessing here that the showAllStyles method populates the TextCharStyleSet with all current character styles whether used or not. Code: #include "hdicoreTextCharStyle.h" Any help would be much appreciated. |