Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复了制作人员字体无法退出的问题 #4

Closed
wants to merge 1 commit into from

Conversation

MorningDemon515
Copy link
Contributor

修复了制作人员字体无法退出的问题

@ZiYueCommentary ZiYueCommentary changed the base branch from master to dev February 12, 2024 12:31
@ZiYueCommentary ZiYueCommentary added the bug修复 美丽的bug修复PR label Feb 12, 2024
Copy link
Owner

@ZiYueCommentary ZiYueCommentary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你写的是个啥?

@MorningDemon515
Copy link
Contributor Author

我看过代码了,juanjp600用的是字体文件名加载字体,所以使用FreeFont没啥意义了,可以直接删了

@MorningDemon515
Copy link
Contributor Author

实在不行你可以去你的B3D里,把FreeFont的构造函数使用FT_Done_Face函数来释放

@ZiYueCommentary
Copy link
Owner

我看过代码了,juanjp600用的是字体文件名加载字体,所以使用FreeFont没啥意义了,可以直接删了

首先,你这句话前后挨不上。凭什么“文件名加载字体”这种方式就不需要用FreeFont回收资源?

虽然FreeFont不负责回收资源,但其负责将资源“无效化”,凭什么要删?

实在不行你可以去你的B3D里,把FreeFont的构造函数使用FT_Done_Face函数来释放

其次,我知道你看不懂C++。回收资源的函数叫做“析构函数”,而不是“构造函数”。并且析构函数里面调用了FT_Done_Face这个函数,希望你至少能全局搜索一下引擎代码,看一遍之后再说。

@MorningDemon515
Copy link
Contributor Author

确实,我说的有点矛盾了(悲)

@MorningDemon515
Copy link
Contributor Author

@MorningDemon515
Copy link
Contributor Author

你去看看

@ZiYueCommentary ZiYueCommentary added the 无效 此Issue没有意义 label Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug修复 美丽的bug修复PR 无效 此Issue没有意义
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants