processing_api.cpp 410 B

12345678910111213141516
  1. // This file is Copyright (c) 2025 Victor Suarez Rovere <suarezvictor@gmail.com>
  2. // SPDX-License-Identifier: AGPL-3.0-only
  3. #include "processing_api.h"
  4. namespace processing
  5. {
  6. PFont createFont(const char *name, Font::fontsize_t fontsize, const char *buf, size_t bufsize)
  7. {
  8. PGraphics::fontManager().load_font(name, fontsize, buf, bufsize);
  9. return PFont(new Font(name, fontsize));
  10. }
  11. } //namespace processing