Team Ai
Datasetpublic

Brunobkr/llama.cpp_AlgMor24_github

ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes3.1kdownloads
generate_fonts.py59 linesDownload Raw Back to fonts
1#!/usr/bin/env python32 3import sys4import os5import json6 7from fontTools.ttLib import TTFont, sfnt8from fontTools.misc.timeTools import timestampNow9sfnt.USE_ZOPFLI = True10 11if len(sys.argv) < 2:12    print("Usage: %s <font file>" % sys.argv[0])13    sys.exit(1)14 15font_file = sys.argv[1]16font_name = os.path.splitext(os.path.basename(font_file))[0]17 18 19font = TTFont(font_file, recalcBBoxes=False, recalcTimestamp=False)20 21# fix timestamp to the epoch22font['head'].created = 023font['head'].modified = 024 25# remove fontforge timestamps26if 'FFTM' in font:27    del font['FFTM']28 29# remove redundant GDEF table30if 'GDEF' in font:31    del font['GDEF']32 33# remove Macintosh table34# https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6cmap.html35font['name'].names = [record for record in font['name'].names if record.platformID != 1]36font['cmap'].tables = [table for table in font['cmap'].tables if table.platformID != 1]37 38# fix OS/2 and hhea metrics39glyf = font['glyf']40ascent = int(max(glyf[c].yMax for c in font.getGlyphOrder() if hasattr(glyf[c], "yMax")))41descent = -int(min(glyf[c].yMin for c in font.getGlyphOrder() if hasattr(glyf[c], "yMin")))42 43font['OS/2'].usWinAscent = ascent44font['OS/2'].usWinDescent = descent45 46font['hhea'].ascent = ascent47font['hhea'].descent = -descent48 49# save TTF50font.save(font_file, reorderTables=None)51 52# save WOFF53font.flavor = 'woff'54font.save(os.path.join('woff', font_name + '.woff'), reorderTables=None)55 56# save WOFF257font.flavor = 'woff2'58font.save(os.path.join('woff2', font_name + '.woff2'), reorderTables=None)59