
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
@use-gpu/glyph
Advanced tools
npm install --save @use-gpu/glyph
yarn add @use-gpu/glyph
Docs: https://usegpu.live/docs/reference-library-@use-gpu-glyph
ab_glyph wrapperStand-alone SDF:
import { glyphToSDF, rgbaToSDF } from '@use-gpu/glyph/sdf';
// Convert grayscale glyph to SDF
glyphToSDF = (
data: Uint8Array,
w: number,
h: number,
pad: number = 4,
radius: number = 3,
cutoff: number = 0.25,
// ESDT vs EDT
subpixel: boolean = true,
// Solidify semi-transparent areas
solidify: boolean = true,
// Pre-process contour
preprocess: boolean = false,
// Post-process SDF
postprocess: boolean = false,
// Get intermediate steps
debug?: (image: Image) => void,
): Image;
// Convert RGBA image to SDF
rgbaToSDF = (
data: Uint8Array,
w: number,
h: number,
pad: number = 4,
radius: number = 3,
cutoff: number = 0.25,
subpixel: boolean = true,
solidify: boolean = true,
preprocess: boolean = false,
postprocess: boolean = false,
debug?: (image: Image) => void,
): Image;
type Image = {
data: Uint8Array,
width: number,
height: number,
};
Made by Steven Wittens. Part of @use-gpu.
FAQs
```sh npm install --save @use-gpu/glyph ```
We found that @use-gpu/glyph demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.