// Path: e-paper-client-api/src/main/java/fr/romainmoreau/epaper/client/api/EPaperValidationException.java
// public class EPaperValidationException extends EPaperException {
// 	private static final long serialVersionUID = 1L;
// 
// 	public EPaperValidationException(String message) {
// 		super(message);
// 	}
// }
// 
// Path: e-paper-client-api/src/main/java/fr/romainmoreau/epaper/client/api/FontSize.java
// public enum FontSize {
// 	DOTS_32(32, 1), DOTS_48(48, 1), DOTS_64(64, 1);
// 
// 	private final int height;
// 
// 	private final int letterSpacing;
// 
// 	private FontSize(int height, int letterSpacing) {
// 		this.height = height;
// 		this.letterSpacing = letterSpacing;
// 	}
// 
// 	public int getHeight() {
// 		return height;
// 	}
// 
// 	public int getLetterSpacing() {
// 		return letterSpacing;
// 	}
// }
// 
// Path: e-paper-client-api/src/main/java/fr/romainmoreau/epaper/client/api/HorizontalAlignment.java
// public enum HorizontalAlignment {
// 	LEFT, CENTER, RIGHT;
// }
// 
// Path: e-paper-client-api/src/main/java/fr/romainmoreau/epaper/client/api/VerticalAlignment.java
// public enum VerticalAlignment {
// 	TOP, CENTER, BOTTOM;
// }


import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import fr.romainmoreau.epaper.client.api.EPaperValidationException;
import fr.romainmoreau.epaper.client.api.FontSize;
import fr.romainmoreau.epaper.client.api.HorizontalAlignment;
import fr.romainmoreau.epaper.client.api.VerticalAlignment;
package fr.romainmoreau.epaper.client.common;



public class Lines {
	public static final char NO_BREAK_SPACE = '\u00A0';

	public static final String LINE_FEED = "\n";

	private static final Pattern VALID_TEXT_PATTERN = Pattern.compile("[[\\p{Print}&&\\p{ASCII}]]+");

	private static final Pattern VALID_ADVANCED_TEXT_PATTERN = Pattern.compile("[[\\p{Print}&&\\p{ASCII}]\u00A0\n]+");

// Path: e-paper-client-api/src/main/java/fr/romainmoreau/epaper/client/api/EPaperValidationException.java
// public class EPaperValidationException extends EPaperException {
// 	private static final long serialVersionUID = 1L;
// 
// 	public EPaperValidationException(String message) {
// 		super(message);
// 	}
// }
// 
// Path: e-paper-client-api/src/main/java/fr/romainmoreau/epaper/client/api/FontSize.java
// public enum FontSize {
// 	DOTS_32(32, 1), DOTS_48(48, 1), DOTS_64(64, 1);
// 
// 	private final int height;
// 
// 	private final int letterSpacing;
// 
// 	private FontSize(int height, int letterSpacing) {
// 		this.height = height;
// 		this.letterSpacing = letterSpacing;
// 	}
// 
// 	public int getHeight() {
// 		return height;
// 	}
// 
// 	public int getLetterSpacing() {
// 		return letterSpacing;
// 	}
// }
// 
// Path: e-paper-client-api/src/main/java/fr/romainmoreau/epaper/client/api/HorizontalAlignment.java
// public enum HorizontalAlignment {
// 	LEFT, CENTER, RIGHT;
// }
// 
// Path: e-paper-client-api/src/main/java/fr/romainmoreau/epaper/client/api/VerticalAlignment.java
// public enum VerticalAlignment {
// 	TOP, CENTER, BOTTOM;
// }


// Path: e-paper-client-common/src/main/java/fr/romainmoreau/epaper/client/common/Lines.java
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import fr.romainmoreau.epaper.client.api.EPaperValidationException;
import fr.romainmoreau.epaper.client.api.FontSize;
import fr.romainmoreau.epaper.client.api.HorizontalAlignment;
import fr.romainmoreau.epaper.client.api.VerticalAlignment;

package fr.romainmoreau.epaper.client.common;



public class Lines {
	public static final char NO_BREAK_SPACE = '\u00A0';

	public static final String LINE_FEED = "\n";

	private static final Pattern VALID_TEXT_PATTERN = Pattern.compile("[[\\p{Print}&&\\p{ASCII}]]+");

	private static final Pattern VALID_ADVANCED_TEXT_PATTERN = Pattern.compile("[[\\p{Print}&&\\p{ASCII}]\u00A0\n]+");

	public static void validateFontSize(FontSize fontSize) throws EPaperValidationException {