-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Brands/Logos #86
Comments
Hi, can I help. I can create a pull request for this. I will be using svg files from another repository and joining into one folder |
@shadowgaming-backup Thanks for offering to help! I haven't created a
Stroke to fill
#!/bin/bash
stroke_to_fill() {
local icon_file="$1"
if grep -q 'stroke-width' "$icon_file"; then
inkscape "$icon_file" \
--actions="select-all; object-stroke-to-path; path-union;" \
--export-filename="$icon_file"
echo "$icon_file converted to fill."
fi
}
ICONS_DIR="$1"
ICONS="${ICONS_DIR}/*.svg"
if [[ -d $ICONS_DIR ]]; then
for icon in $ICONS; do stroke_to_fill "$icon"; done
else
echo "Directory $ICONS_DIR does not exist." >&2
exit 1
fi SVGO config
module.exports = {
plugins: [
"cleanupEnableBackground",
"cleanupIds",
"cleanupNumericValues",
"collapseGroups",
"convertColors",
"convertEllipseToCircle",
{
name: "convertPathData",
params: {
removeUseless: false,
},
},
"convertShapeToPath",
"convertTransform",
"inlineStyles",
"mergePaths",
"mergeStyles",
"minifyStyles",
"moveElemsAttrsToGroup",
"moveGroupAttrsToElems",
"removeComments",
{
name: "removeAttrs",
params: {
attrs: [
"class",
"fill-rule",
"fill",
"stroke-linecap",
"stroke-linejoin",
"stroke-width",
"stroke",
"style",
"version",
],
},
},
"removeDesc",
"removeDoctype",
"removeEditorsNSData",
"removeEmptyAttrs",
"removeEmptyContainers",
"removeEmptyText",
"removeHiddenElems",
"removeMetadata",
"removeNonInheritableGroupAttrs",
"removeOffCanvasPaths",
"removeTitle",
"removeUnknownsAndDefaults",
"removeUnusedNS",
"removeUselessDefs",
"removeUselessStrokeAndFill",
"removeXMLProcInst",
{
name: "sortAttrs",
params: {
order: ["xmlns", "width", "height", "viewBox"],
},
},
"sortDefsChildren",
],
}; |
Thanks, I will get started, I will create a pr |
Hi @shadowgaming-backup, I'm gonna start collecting the brand icons now. If you've already begun working on this, feel free to push your changes to continue in your PR. I don't want to duplicate efforts or waste any work you've done so far. |
New Icon Pack Request
Link to Icon Pack
Reason for Addition
I noticed that many of the icon packs have the same brand icons. To avoid redundancy and make better use of the available Unicode space, IconicFonts should consider consolidating these icons into a single, unified pack. This approach would help prevent duplicate icons in the patched fonts and also conserve Unicode slots, given the 65,535 glyph limit per font.
Additional Information
Some of the packs might be removed from the patched fonts entirely, like...
The text was updated successfully, but these errors were encountered: