1 /* 2 * Copyright (C) 2020 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 * 16 */ 17 package com.google.android.exoplayer2.text.span; 18 19 /** 20 * A styling span for horizontal text in a vertical context. 21 * 22 * <p>This is used in vertical text to write some characters in a horizontal orientation, known in 23 * Japanese as tate-chu-yoko. 24 * 25 * <p>More information on <a 26 * href="https://www.w3.org/TR/jlreq/#handling_of_tatechuyoko">tate-chu-yoko</a> and <a 27 * href="https://developer.android.com/guide/topics/text/spans">span styling</a>. 28 */ 29 // NOTE: There's no Android layout support for this, so this span currently doesn't extend any 30 // styling superclasses (e.g. MetricAffectingSpan). The only way to render this styling is to 31 // extract the spans and do the layout manually. 32 public final class HorizontalTextInVerticalContextSpan {} 33