FreeType2 渲染字体的示例
FreeType2有水平、竖直两种文字布局,注意原点的位置。
参考: https://freetype.org/freetype2/docs/glyphs/glyphs-3.html
FreeType2有水平、竖直两种文字布局,注意原点的位置。
参考: https://freetype.org/freetype2/docs/glyphs/glyphs-3.html
在 Pull Request 的 URL 结尾加上 .patch 即可重定向到 PATCH
例如 https://github.com/hubenchang0515/SmartQQ/pull/3 添加 .patch
变为 https://github.com/hubenchang0515/SmartQQ/pull/3.patch
即可重定向到 https://patch-diff.githubusercontent.com/raw/hubenchang0515/SmartQQ/pull/3.patch
参考: https://about.gitlab.com/install/
安装依赖:
1sudo apt update在使用 JSON 时经常遇到需要忽略字段的情况,例如返回用户信息时不能返回密码,通常将注解 TAG 设为 json:"-" 即可:
1type User struct {
2 Account string `json:"account"`
3 Password string `json:"-"`
4 Nickname string `json:"nickname"`
5}Kafka 有两种使用方式:基于 zookeeper 和基于 kraft.
启动:
1./bin/zookeeper-server-start.sh ./config/zookeeper.properties
2./bin/kafka-server-start.sh ./config/server.properties安装 AMD-APP-SDK 或 ROCm
OpenGL 没有手动选择显卡的 API,在同时具备核心显卡和独立显卡的设备上常常会在核显上运行。
Windows 上可以添加如下代码选择使用独显:
1#ifdef __cplusplus
2extern "C" {
3#endif首先确认安装了 next 和 MUI:
1npm install next react react-dom @mui/material @emotion/react @emotion/styled以 Lolipop Media Player 为例。
本文全部使用
HKEY_CURRENT_USER,表示当前用户的配置。 可以替换为HKEY_LOCAL_MACHINE,表示所有用户的配置。