{"action":"opened","issue":{"url":"https://api.github.com/repos/ibireme/YYText/issues/40","labels_url":"https://api.github.com/repos/ibireme/YYText/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/ibireme/YYText/issues/40/comments","events_url":"https://api.github.com/repos/ibireme/YYText/issues/40/events","html_url":"https://github.com/ibireme/YYText/issues/40","id":119287020,"number":40,"title":"当文本含有表情时，YYTextLayout计算出来的高度是不正确的","user":{"login":"tysenlau","id":5689361,"avatar_url":"https://avatars.githubusercontent.com/u/5689361?v=3","gravatar_id":"","url":"https://api.github.com/users/tysenlau","html_url":"https://github.com/tysenlau","followers_url":"https://api.github.com/users/tysenlau/followers","following_url":"https://api.github.com/users/tysenlau/following{/other_user}","gists_url":"https://api.github.com/users/tysenlau/gists{/gist_id}","starred_url":"https://api.github.com/users/tysenlau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tysenlau/subscriptions","organizations_url":"https://api.github.com/users/tysenlau/orgs","repos_url":"https://api.github.com/users/tysenlau/repos","events_url":"https://api.github.com/users/tysenlau/events{/privacy}","received_events_url":"https://api.github.com/users/tysenlau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-28T11:24:55Z","updated_at":"2015-11-28T11:24:55Z","closed_at":null,"body":"应该是把表情符号当做文本处理后进行高度计算了，\r\n如文本：您haidf阿打发士大夫撒地方发的啥方[f024t]法发达范德萨法撒旦法地方\r\n[f024t] 代表一个表情\r\n\r\n    NSMutableAttributedString *text = [[NSMutableAttributedString alloc]initWithString:txt];\r\n    text.yy_font=[UIFont systemFontOfSize:17.0f];\r\n   \r\n    YYTextLinePositionSimpleModifier *modifier = [YYTextLinePositionSimpleModifier new];\r\n    modifier.fixedLineHeight = 22.0f;\r\n    \r\n    YYTextContainer *container = [YYTextContainer new];\r\n    container.size =  CGSizeMake([[UIScreen mainScreen] bounds].size.width * 0.7f-50, CGFLOAT_MAX);\r\n    container.linePositionModifier = modifier;\r\n    \r\n    YYTextLayout *layout = [YYTextLayout layoutWithContainer:container text:text ];\r\n\r\n\r\n实质显示只有3行，计算出来是4行。屏幕宽度320"}}