mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 17:27:08 +08:00
1 parent
1c576bde18
commit
1de949abfc
8 files changed
+215
-23
No files matched your search
@@ -16,12 +16,20 @@ package webview
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// conversionMemory 未提供系统内存探测时仅按并行数调度
|
||||
var conversionMemory func() int64
|
||||
|
||||
// instanceDirectory 解析数据目录的实际路径,使符号链接复用同一实例
|
||||
// 入参: path 数据目录路径
|
||||
// 返回: string 规范路径, error 路径解析错误
|
||||
func instanceDirectory(path string) (string, error) {
|
||||
return filepath.EvalSymlinks(path)
|
||||
}
|
||||
|
||||
// fontNameLanguage 获取Linux区域设置对应的OpenType名称表标识
|
||||
// 返回: uint16 名称表平台标识, uint16 显示语言标识
|
||||
func fontNameLanguage() (uint16, uint16) {
|
||||
|
||||
Reference in new issue
Block a user