"An application sends the WM_FONTCHANGE message to all top-level windows in the system after changing the pool of font resources."
https://msdn.microsoft.com/en-us/library/windows/desktop/dd145211(v=vs.85).aspx
{ | |
"$ref": "#/definitions/FileResponse", | |
"$schema": "http://json-schema.org/draft-06/schema#", | |
"definitions": { | |
"BlendMode": { | |
"enum": [ | |
"COLOR", | |
"COLOR_BURN", | |
"COLOR_DODGE", | |
"DARKEN", |
var value = nil, | |
key = "kModelPropertiesKey", | |
layer = context.selection[0], | |
plugin = "com.animaapp.stc-sketch-plugin"; | |
// Get the value | |
context.command.valueForKey_onLayer_forPluginIdentifier(key,layer,plugin); | |
// Set the value | |
context.command.setValue_forKey_onLayer_forPluginIdentifier(value,key,layer,plugin); |
// [0] represents first override, replace with appropriate index if other override is desired | |
symbolInstance.setValue_forOverridePoint("New text", symbolInstance.overridePoints()[0]); |
const path = require('path'); | |
const fs = require('fs'); | |
const webpack = require('webpack'); | |
const {CommonsChunkPlugin} = require('webpack').optimize; | |
const BrowserSyncPlugin = require('browser-sync-webpack-plugin'); | |
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin'); | |
const WriteFilePlugin = require('write-file-webpack-plugin'); | |
const proxy = require('http-proxy-middleware'); // require('http-proxy-middleware'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); // require('http-proxy-middleware'); | |
const pkg = require('./package.json'); |
//CC2018 | |
document.addEventListener('paste', function(evt) { | |
//Import SVG copied to clipboard from Illustrator | |
//remove last hidden character that will otherwise break the import | |
if(document.activeElement.nodeName!="TEXTAREA"){ | |
var str=evt.clipboardData.getData('text/plain').slice(0, -1); | |
var svg=project.importSVG(str) | |
svg.clipped=false; | |
svg.children[0].remove() | |
svg.parent.insertChildren(svg.index,svg.removeChildren()); |
"An application sends the WM_FONTCHANGE message to all top-level windows in the system after changing the pool of font resources."
https://msdn.microsoft.com/en-us/library/windows/desktop/dd145211(v=vs.85).aspx
I've been thinking about creating a font management service similar to traditional software package managers (e.g. Debian Aptitude, NPM, etc.)
The basic idea is this:
javascript:(function pxl8(){const s=document.createElement('style');s.innerHTML='img{ image-rendering: optimizeSpeed; image-rendering: -moz-crisp-edges; image-rendering: -o-crisp-edges; image-rendering: -webkit-optimize-contrast; image-rendering: pixelated; image-rendering: optimize-contrast; -ms-interpolation-mode: nearest-neighbor; }';document.head.appendChild(s);for(let i=0;i<frames.length;++i){frames[i].document.head.appendChild(s);}})() |
function stripext(fn) { | |
const di = fn.lastIndexOf('.') | |
if (di < 1) { | |
return fn | |
} | |
const si = fn.lastIndexOf('/') | |
return (si == -1 || di > si+1) ? fn.substr(0, di) : fn | |
} | |
for (const sample of [ |
<!--[if (gte mso 9)|(IE)]> | |
<center> | |
<table> | |
<tr> | |
<td width="600"> | |
<![endif]--> | |
<div style="max-width: 600px; margin: 0 auto;"> | |
<p>This text will be centered and constrained to 600 pixels even on Outlook which does not support max-width CSS</p> | |
</div> | |
<!--[if mso]> |