Skip to content

Commit 5b2500d

Browse files
authored
Merge pull request #7523 from dhowe/dev-2.0
Text adjustments
2 parents 21167f0 + 056379d commit 5b2500d

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/core/p5.Renderer2D.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,12 +1030,12 @@ class Renderer2D extends Renderer {
10301030
}
10311031

10321032
//////////////////////////////////////////////
1033-
// TYPOGRAPHY
1033+
// TYPOGRAPHY (see src/type/textCore.js)
10341034
//
10351035
//////////////////////////////////////////////
10361036

10371037

1038-
1038+
/*
10391039
_renderText(p, line, x, y, maxY, minY) {
10401040
if (y < minY || y >= maxY) {
10411041
return; // don't render lines beyond our minY/maxY bounds (see #5785)
@@ -1100,7 +1100,7 @@ class Renderer2D extends Renderer {
11001100
return p;
11011101
}
11021102
1103-
/*_applyTextProperties() {
1103+
_applyTextProperties() {
11041104
let font;
11051105
const p = this._pInst;
11061106

src/type/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

2-
import text2d from './text2d.js';
2+
import textCore from './textCore.js';
33
import p5font from './p5.Font.js';
44

55
export default function(p5){
6-
p5.registerAddon(text2d);
6+
p5.registerAddon(textCore);
77
p5.registerAddon(p5font);
88
}
99

src/type/text2d.js renamed to src/type/textCore.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { Renderer } from '../core/p5.Renderer';
22

33
/**
44
* @module Type
5-
* @submodule text2d
5+
* @submodule textCore
66
* @for p5
77
* @requires core
88
*/
9-
function text2d(p5, fn) {
9+
function textCore(p5, fn) {
1010

1111
// additional constants
1212
fn.IDEOGRAPHIC = 'ideographic';
@@ -1255,8 +1255,8 @@ function text2d(p5, fn) {
12551255
}
12561256
}
12571257

1258-
export default text2d;
1258+
export default textCore;
12591259

12601260
if (typeof p5 !== 'undefined') {
1261-
text2d(p5, p5.prototype);
1261+
textCore(p5, p5.prototype);
12621262
}

0 commit comments

Comments
 (0)