Zeno Zeng

Results 17 comments of Zeno Zeng

@shooshx Hi, I just created a pull request for this, see https://github.com/gliffy/canvas2svg/pull/83

> Cool > You can also see here my POC for fill() with Path2D: > https://github.com/shooshx/nodes_geom/blob/master/lib/canvas2svg.js#L759 > It can't be perfect by design it requires the user to replace "new...

Could this be possible? We create a group to wrap all current elements and apply clipPath on it. And we create a new group, for new elements, simply put them...

Thanks a lot. I am now using a tricky way to implement clearRect: I remove all the elements created if the `x, y, w, h` matches `0, 0, canvas.width, canvas.height`....

本来有点想加这组 API 的,但是感觉似乎没什么需求,好像显示代码的时候并不需要中文字体的样子?

在 macOS Monterey 上,Chrome 可以读取到 华文楷体,但是 Safari 不行。`system_profiler SPFontsDataType` 输出如下: ```bash system_profiler SPFontsDataType | grep -i kai Kaiti.ttc: Location: /System/Library/AssetsV2/com_apple_MobileAsset_Font7/4187e64a3368781656782ccb95eadb9c19796e1d.asset/AssetData/Kaiti.ttc STKaitiSC-Regular: Unique Name: Kaiti SC Regular; 17.0d1e2; 2021-06-23 STKaitiTC-Regular: Unique...

https://stackoverflow.com/questions/52692905/font-family-display-issue-in-safari-12-on-macos-mojave

@Tramy00 你好,请问可否附上链接呢?

字符集信息似乎比较麻烦,不知道有没有什么合适软件能够自动读取字符集和字符数之类的

@twonyn Unfortunately, I have not thought of a good way to achieve this function. It’s white because svgcanvas‘s current implement clearRect by adding a rect element, see also: https://github.com/zenozeng/svgcanvas/blob/main/context.js#L839