sm64coopdx/bin/custom_font.c

75 lines
5.7 KiB
C
Raw Normal View History

2023-04-02 20:34:51 +00:00
#include <ultra64.h>
#include "sm64.h"
#include "game/ingame_menu.h"
#include "make_const_nonconst.h"
ALIGNED8 const u8 texture_font_normal[] = {
2023-04-02 21:58:43 +00:00
#include "textures/custom_font/custom_font_normal.rgba32.inc.c"
2023-04-02 20:34:51 +00:00
};
const f32 font_normal_widths[] = {
/* ! " # $ % & ' ( ) * + , - . / */
2023-04-20 19:58:17 +00:00
7, 12, 14, 12, 14, 16, 8, 10, 10, 12, 14, 8, 12, 8, 10,
2023-04-02 20:34:51 +00:00
/* 0 1 2 3 4 5 6 7 8 9 */
2023-04-20 19:58:17 +00:00
14, 12, 13, 14, 14, 14, 14, 13, 14, 14,
2023-04-02 20:34:51 +00:00
/* : ; < = > ? @ */
2023-04-20 19:58:17 +00:00
6, 8, 10, 12, 10, 11, 18,
2023-04-02 20:34:51 +00:00
/* A B C D E F G H I J K L M N O P Q R S T U V W X Y Z */
2023-04-22 09:44:19 +00:00
12, 12, 12, 12, 11, 10, 12, 12, 9, 12, 12, 10, 16, 16, 12, 11, 12, 12, 12, 10, 12, 10, 16, 14, 12, 12,
2023-04-02 20:34:51 +00:00
/* [ \ ] ^ _ ` */
2023-04-20 19:58:17 +00:00
10, 10, 10, 12, 12, 8,
2023-04-02 20:34:51 +00:00
/* a b c d e f g h i j k l m n o p q r s t u v w x y z */
2023-04-22 09:44:19 +00:00
10, 10, 10, 10, 9, 8, 12, 10, 7, 9, 10, 4, 13, 10, 9, 9, 10, 9, 10, 9, 10, 9, 14, 12, 10, 10,
2023-04-02 20:34:51 +00:00
/* { | } ~ DEL */
2023-04-20 19:58:17 +00:00
10, 8, 10, 16, 10,
2023-04-02 20:34:51 +00:00
};
2023-04-20 19:58:17 +00:00
2023-04-02 20:34:51 +00:00
//////////////////////////////////////////////////////////
ALIGNED8 const u8 texture_font_title[] = {
2023-04-02 21:58:43 +00:00
#include "textures/custom_font/custom_font_title.rgba32.inc.c"
2023-04-02 20:34:51 +00:00
};
const f32 font_title_widths[] = {
/* ! " # $ % & ' ( ) * + , - . / */
0.50f, 0.50f, 0.50f, 0.50f, 0.50f, 0.50f, 0.50f, 0.50f, 0.50f, 0.50f, 0.50f, 0.50f, 0.50f, 0.50f, 0.50f,
/* 0 1 2 3 4 5 6 7 8 9 */
0.45f, 0.35f, 0.45f, 0.45f, 0.45f, 0.45f, 0.45f, 0.45f, 0.45f, 0.45f,
/* : ; < = > ? @ */
0.50f, 0.50f, 0.50f, 0.50f, 0.50f, 0.50f, 0.50f,
/* A B C D E F G H I J K L M N O P Q R S T U V W X Y Z */
0.55f, 0.50f, 0.50f, 0.50f, 0.45f, 0.45f, 0.50f, 0.55f, 0.28f, 0.60f, 0.50f, 0.45f, 0.55f, 0.50f, 0.50f, 0.50f, 0.50f, 0.50f, 0.55f, 0.50f, 0.50f, 0.50f, 0.60f, 0.52f, 0.60f, 0.45f,
/* [ \ ] ^ _ ` */
0.50f, 0.50f, 0.50f, 0.50f, 0.50f, 0.50f,
/* a b c d e f g h i j k l m n o p q r s t u v w x y z */
0.45f, 0.45f, 0.40f, 0.40f, 0.45f, 0.37f, 0.40f, 0.40f, 0.20f, 0.45f, 0.40f, 0.30f, 0.50f, 0.40f, 0.40f, 0.40f, 0.45f, 0.40f, 0.50f, 0.45f, 0.50f, 0.40f, 0.50f, 0.50f, 0.45f, 0.45f,
/* { | } ~ DEL */
0.50f, 0.50f, 0.50f, 0.50f, 0.50f,
};
//////////////////////////////////////////////////////////
2023-04-03 06:02:14 +00:00
ALIGNED8 const u8 texture_font_tiny[] = {
#include "textures/custom_font/custom_font_tiny.rgba32.inc.c"
};
const f32 font_tiny_widths[] = {
/* ! " # $ % & ' ( ) * + , - . / */
0.3125f, 0.3750f, 0.4375f, 0.3750f, 0.4375f, 0.5000f, 0.2500f, 0.3125f, 0.3125f, 0.3750f, 0.4375f, 0.2500f, 0.3750f, 0.2500f, 0.3125f,
/* 0 1 2 3 4 5 6 7 8 9 */
0.4375f, 0.4375f, 0.4375f, 0.4375f, 0.4375f, 0.4375f, 0.4375f, 0.4375f, 0.4375f, 0.4375f,
/* : ; < = > ? @ */
0.2500f, 0.2500f, 0.3125f, 0.3750f, 0.3125f, 0.4375f, 0.5750f,
/* A B C D E F G H I J K L M N O P Q R S T U V W X Y Z */
0.3750f, 0.3750f, 0.3750f, 0.3750f, 0.3750f, 0.3750f, 0.3750f, 0.3750f, 0.3125f, 0.3750f, 0.3750f, 0.3125f, 0.5000f, 0.5000f, 0.3750f, 0.3750f, 0.3750f, 0.3750f, 0.3750f, 0.3125f, 0.3750f, 0.3750f, 0.5000f, 0.4375f, 0.3750f, 0.3750f,
/* [ \ ] ^ _ ` */
0.3125f, 0.3125f, 0.3125f, 0.3750f, 0.3750f, 0.2500f,
/* a b c d e f g h i j k l m n o p q r s t u v w x y z */
0.3750f, 0.3125f, 0.3125f, 0.3750f, 0.3125f, 0.3125f, 0.3750f, 0.3125f, 0.2500f, 0.3125f, 0.3125f, 0.1875f, 0.4375f, 0.3125f, 0.3125f, 0.3125f, 0.3750f, 0.3125f, 0.3125f, 0.3125f, 0.3125f, 0.3125f, 0.4375f, 0.4375f, 0.3125f, 0.3125f,
/* { | } ~ DEL */
0.3125f, 0.2500f, 0.3125f, 0.5000f, 0.5000f
};
//////////////////////////////////////////////////////////