- Forked from Godot Engine 4.7-dev (MIT License) - Rebranded to AeThex Engine with cyan/purple theme - Added AI-powered development assistant module - Integrated Claude API for code completion & error fixing - Custom hexagon logo and branding - Multi-platform CI/CD (Windows, Linux, macOS) - Built Linux editor binary (151MB) - Complete source code with all customizations Tech Stack: - C++ game engine core - AI Module: Claude 3.5 Sonnet integration - Build: SCons, 14K+ source files - License: MIT (Godot) + Custom (AeThex features) Ready for Windows build via GitHub Actions!
25 lines
933 B
C++
25 lines
933 B
C++
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later
|
|
// Copyright 2010, SIL International, All rights reserved.
|
|
|
|
#include "inc/GlyphFace.h"
|
|
|
|
|
|
using namespace graphite2;
|
|
|
|
int32 GlyphFace::getMetric(uint8 metric) const
|
|
{
|
|
switch (metrics(metric))
|
|
{
|
|
case kgmetLsb : return int32(m_bbox.bl.x);
|
|
case kgmetRsb : return int32(m_advance.x - m_bbox.tr.x);
|
|
case kgmetBbTop : return int32(m_bbox.tr.y);
|
|
case kgmetBbBottom : return int32(m_bbox.bl.y);
|
|
case kgmetBbLeft : return int32(m_bbox.bl.x);
|
|
case kgmetBbRight : return int32(m_bbox.tr.x);
|
|
case kgmetBbHeight : return int32(m_bbox.tr.y - m_bbox.bl.y);
|
|
case kgmetBbWidth : return int32(m_bbox.tr.x - m_bbox.bl.x);
|
|
case kgmetAdvWidth : return int32(m_advance.x);
|
|
case kgmetAdvHeight : return int32(m_advance.y);
|
|
default : return 0;
|
|
}
|
|
}
|